How vbrochard/lyrem works
Lyrem is a command-line Linux ELF security analyzer. A user supplies a binary and output options; the CLI parses the ELF into metadata, derives hardening properties, and displays a default security summary, a full report, or JSON. The parser handles ELF headers, program headers, and dynamic entries; the security layer interprets metadata for NX, PIE, RELRO, interpreter, dynamic-segment, and RWX results. The graph follows calls visible in the CLI source and parser relationships supported by the excerpts and source index; unsampled output details are represented only where documented.
Main entry points: main.rs CLI workflow · parser.rs ELF parser · metadata.rs ELF metadata · cli.rs Human reports
Components 11
Input and parsing
- CLI workflow
src/main.rs - ELF parser
src/elf/parser.rs
ELF representation
- ELF metadata
src/elf/metadata.rs - Program headers
src/elf/program.rs - Dynamic entries
src/elf/dynamic.rs
Security analysis
- Security analysis
src/elf/security.rs
Output
- Human reports
src/output/cli.rs - JSON report
src/main.rs
Other components
- User
- ELF binary
- Terminal output
Connections 14
- User → CLI workflow: supplies options
src/main.rs - User → ELF binary: selects file
README.md - CLI workflow → ELF parser: calls parse
src/main.rs - ELF parser → ELF binary: reads
src/elf/parser.rs - ELF parser → ELF metadata: builds
src/elf/parser.rs - ELF parser → Program headers: parses
src/elf/parser.rs - ELF parser → Dynamic entries: parses
src/elf/parser.rs - ELF metadata → Program headers: contains
src/elf/metadata.rs - ELF metadata → Dynamic entries: contains
src/elf/metadata.rs - CLI workflow → Security analysis: calls analyze
src/main.rs - CLI workflow → Human reports: calls report
src/main.rs - CLI workflow → JSON report: serializes
src/main.rs - Human reports → Terminal output: prints
src/output/cli.rs - JSON report → Terminal output: prints JSON
src/main.rs