macula_security_scanner (macula v0.20.5)
View SourceMacula Security Scanner
Static analysis engine for scanning BEAM files: - Detects dangerous BIF usage (os:cmd, open_port, etc.) - Identifies undeclared capabilities - Detects NIF loading attempts - Calculates security score
All functions are stateless.
Summary
Functions
Calculate security score based on scan results
Get list of dangerous BIFs
Scan a gzipped BEAM archive
Scan a list of {ModuleName, BeamBinary} tuples
Scan a manifest for security issues
Types
Functions
-spec calculate_score(scan_result()) -> 0..100.
Calculate security score based on scan results
-spec get_dangerous_bifs() -> [{atom(), atom(), non_neg_integer()}].
Get list of dangerous BIFs
-spec scan_beam_archive(Archive :: binary()) -> {ok, scan_result()} | {error, term()}.
Scan a gzipped BEAM archive
-spec scan_beam_files([{atom(), binary()}]) -> {ok, scan_result()} | {error, term()}.
Scan a list of {ModuleName, BeamBinary} tuples
Scan a manifest for security issues