How chandanhegde15/agentic-security-system works
This package analyzes a project’s declared dependencies and produces risk findings, remediation recommendations, and an isolated verification outcome. The principal workflow is coordinated by the pipeline: extract declarations, check package registries, score risk, recommend actions, then validate replacement candidates in a temporary Git worktree. Parser and scoring internals are shown where source supports them; the README is empty, so broader product capabilities are not documented. Some integrations are injectable, and unsampled implementation details are represented only where the source index establishes a relationship.
Main entry points: pipeline/agent.py Analysis pipeline · verifier.py Registry verifier · recommendation/agent.py Recommendation agent · analyzer.py Risk analyzer
Components 25
Workflow orchestration
- Analysis pipeline
agents/pipeline/agent.py - Pipeline result
agents/pipeline/models.py
Dependency extraction
- Extraction agent
agents/dependency_extraction/agent.py - Manifest scanner
agents/dependency_extraction/scanner.py - package.json parser
agents/dependency_extraction/parsers/package_json_parser.py - Requirements parser
agents/dependency_extraction/parsers/requirements_parser.py - Dependency records
agents/dependency_extraction/models.py
Registry verification
- Registry verifier
agents/registry_verification/verifier.py - Verification records
agents/registry_verification/models.py - PyPI client
agents/registry_verification/registries/pypi_client.py - npm client
agents/registry_verification/registries/npm_client.py
Risk and recommendations
- Risk analyzer
agents/risk_analysis/analyzer.py - Risk results
agents/risk_analysis/models.py - Name similarity
agents/risk_analysis/similarity.py - Recommendation agent
agents/recommendation/agent.py - Recommendation records
agents/recommendation/models.py - Evidence validation
agents/recommendation/validation.py - LLM provider interface
agents/recommendation/llm/base.py - Groq provider
agents/recommendation/llm/groq_provider.py
Candidate verification
- Candidate verifier
agents/recommendation_verification/agent.py - Candidate input validation
agents/recommendation_verification/validation.py - Verification outcome
agents/recommendation_verification/models.py
Other components
- Project caller
- PyPI registry
- npm registry
Connections 29
- Project caller → Analysis pipeline: runs
agents/pipeline/agent.py - Analysis pipeline → Extraction agent: extracts
agents/pipeline/agent.py - Extraction agent → Manifest scanner: scans
agents/dependency_extraction/agent.py - Manifest scanner → package.json parser: dispatches
agents/dependency_extraction/scanner.py - Manifest scanner → Requirements parser: dispatches
agents/dependency_extraction/scanner.py - package.json parser → Dependency records: creates
agents/dependency_extraction/parsers/package_json_parser.py - Requirements parser → Dependency records: creates
agents/dependency_extraction/parsers/requirements_parser.py - Analysis pipeline → Registry verifier: verifies
agents/pipeline/agent.py - Registry verifier → Dependency records: reads
agents/registry_verification/verifier.py - Registry verifier → PyPI client: queries
agents/registry_verification/verifier.py - Registry verifier → npm client: queries
agents/registry_verification/verifier.py - Registry verifier → Verification records: builds
agents/registry_verification/verifier.py - PyPI client → PyPI registry: requests metadata
agents/registry_verification/registries/pypi_client.py - npm client → npm registry: requests metadata
agents/registry_verification/registries/npm_client.py - Analysis pipeline → Risk analyzer: scores
agents/pipeline/agent.py - Risk analyzer → Verification records: analyzes
agents/risk_analysis/analyzer.py - Risk analyzer → Name similarity: compares names
agents/risk_analysis/analyzer.py - Risk analyzer → Risk results: produces
agents/risk_analysis/analyzer.py - Analysis pipeline → Recommendation agent: requests advice
agents/pipeline/agent.py - Recommendation agent → Evidence validation: validates output
agents/recommendation/agent.py - Recommendation agent → Recommendation records: uses
agents/recommendation/agent.py - Recommendation agent → LLM provider interface: uses interface
agents/recommendation/agent.py - Groq provider → LLM provider interface: implements
agents/recommendation/llm/groq_provider.py - Recommendation agent → Groq provider: may inject
- Analysis pipeline → Candidate verifier: checks candidates
agents/pipeline/agent.py - Candidate verifier → Candidate input validation: validates inputs
agents/recommendation_verification/agent.py - Candidate verifier → Recommendation records: reads advice
agents/recommendation_verification/agent.py - Candidate verifier → Verification outcome: returns outcome
agents/recommendation_verification/agent.py - Analysis pipeline → Pipeline result: assembles
agents/pipeline/agent.py