How infosecak/layers works
L.A.Y.E.R.S. is a browser-based static security scanner for Chrome/Chromium extensions. The user selects an extension archive; the app extracts its files, analyzes them, and presents findings and a risk assessment. The README documents distinct analysis areas and weighted scoring, while the sampled implementation places the workflow in one large React source file. The graph preserves those documented branches; several internal analyzer boundaries are conceptual because the relevant implementation excerpts were not shown.
Main entry points: Layers.jsx Scan Engine · main.jsx React Entry
Components 13
Browser App
- React Entry
src/main.jsx - Scanner UI
src/Layers.jsx - Archive Extraction
src/Layers.jsx
Static Analysis
- Scan Engine
src/Layers.jsx - JavaScript Checks
src/Layers.jsx - Secret Checks
src/Layers.jsx - URL Analysis
src/Layers.jsx - Permission Analysis
src/Layers.jsx - Manifest Analysis
src/Layers.jsx - HTML Checks
src/Layers.jsx
Risk Results
- Risk Scoring
src/Layers.jsx - Findings View
src/Layers.jsx
Other components
- Security User
Connections 13
- React Entry → Scanner UI: renders
src/main.jsx - Security User → Scanner UI: selects archive
- Scanner UI → Archive Extraction: extracts files
src/Layers.jsx - Scanner UI → Scan Engine: runs scan
src/Layers.jsx - Scan Engine → JavaScript Checks: checks code
README.md - Scan Engine → Secret Checks: scans secrets
README.md - Scan Engine → URL Analysis: analyzes URLs
README.md - Scan Engine → Permission Analysis: evaluates permissions
README.md - Scan Engine → Manifest Analysis: reviews manifest
README.md - Scan Engine → HTML Checks: scans HTML
README.md - Scan Engine → Risk Scoring: scores findings
README.md - Risk Scoring → Findings View: shows assessment
README.md - Scanner UI → Findings View: renders results
src/Layers.jsx