How magadha-ig/pencheff-ce works
Pencheff CE is a self-hosted offensive-security platform: an operator submits an authorized target, runs reconnaissance and scans, reviews findings, and produces reports. The API exposes the product workflows; the Pencheff plugin also provides MCP tools and a deterministic engagement orchestrator. The README documents broad scan coverage, optional AI, compliance, scheduling, and manual testing tools. Some implementation links are not visible in the sampled source, so those branches are represented at subsystem level without inferred call chains.
Main entry points: server.py Scan engine · main.py HTTP API · findings.py Findings · engine.py Engagement orchestration
Components 20
Product entry points
- Web app
apps/web/app - HTTP API
apps/api/pencheff_api/main.py - MCP server
plugins/pencheff/pencheff/server.py
Assessment engine
- Scan workflows
apps/api/pencheff_api/routers/scans.py - Scan engine
plugins/pencheff/pencheff/server.py - Reconnaissance
plugins/pencheff/pencheff/modules - Engagement orchestration
plugins/pencheff/pencheff/core/orchestrator/engine.py - Policy scans
plugins/pencheff/pencheff/core/policy_engine.py - Manual testing tools
plugins/pencheff/pencheff/modules - LLM red team
plugins/pencheff/pencheff/modules/llm_red_team/engine.py - Assessment state
plugins/pencheff/pencheff/core/session.py
Findings and reporting
- Findings
plugins/pencheff/pencheff/core/findings.py - AI remediation
apps/api/pencheff_api/services/agentic_fixer/llm_client.py - Compliance mapping
apps/api/pencheff_api/routers/compliance.py - Reports
apps/api/pencheff_api/routers/reports.py
Platform operations
- Platform database
apps/api/pencheff_api/db/models.py - Security lake
apps/api/pencheff_api/services/security_lake/lake_writer.py - Scan scheduling
apps/api/pencheff_api/services/scheduler.py
Other components
- Operator
- Authorized target
Connections 24
- Operator → Web app: uses
- Operator → MCP server: drives
- Web app → HTTP API: requests
- MCP server → Scan engine: invokes tools
plugins/pencheff/pencheff/server.py - Authorized target → Scan workflows: is submitted
- Scan workflows → Scan engine: dispatches assessment
- Scan engine → Reconnaissance: runs reconnaissance
plugins/pencheff/pencheff/server.py - Scan engine → Engagement orchestration: runs engagement
- Engagement orchestration → Assessment state: tracks state
- Engagement orchestration → Policy scans: selects policy scans
- Policy scans → Assessment state: creates session
plugins/pencheff/pencheff/core/policy_engine.py - Policy scans → Findings: adds scan findings
plugins/pencheff/pencheff/core/policy_engine.py - Scan engine → Manual testing tools: offers testing tools
plugins/pencheff/pencheff/server.py - Scan engine → LLM red team: offers LLM probes
- Scan engine → Findings: reports findings
- HTTP API → Scan workflows: registers routes
apps/api/pencheff_api/main.py - HTTP API → Platform database: uses persistence
- HTTP API → AI remediation: offers remediation
- HTTP API → Compliance mapping: offers compliance
apps/api/pencheff_api/main.py - HTTP API → Reports: offers reports
apps/api/pencheff_api/main.py - Findings → Reports: exported in
- Findings → Compliance mapping: mapped to controls
- Findings → Security lake: ingested
- Operator → Scan scheduling: schedules scans