feat: offline security inspection plugin with runtime, drift, and pol… - #498
Open
KodeCharya wants to merge 4 commits into
Open
feat: offline security inspection plugin with runtime, drift, and pol…#498KodeCharya wants to merge 4 commits into
KodeCharya wants to merge 4 commits into
Conversation
…icy enforcement Add 100% offline, deterministic security inspection plugin for NVIDIA Skill Inspector. Core (9 modules, air-gapped, no cloud/LLM/telemetry): - Dependency graph: networkx DiGraph + AST/import + manifest, Cytoscape (vendored offline) + cycle detection - Permissions: declared vs observed (filesystem/network/subprocess/env/mcp) + least-privilege - Provenance: SHA-256 + author/origin/version history + SQLite (~/.skill-inspector/) - Secrets: 16 regex + Shannon entropy >=4.2 + logging detection (SEC-*) - Diff: git plumbing + difflib fallback + escalation detection - SBOM: CycloneDX 1.5 + pURLs + hashes per-skill + aggregate - Scorecard: severity×category weighted 0–100 + grade A–F - Privacy: PII/Credentials/Financial/... + read/write/transmit flow - Reporting: FastAPI + Jinja2 on 127.0.0.1 only, vendored cytoscape.min.js Intelligence layer (new): - Runtime Behavior Monitor: isolated tempfile sandbox, audit-hook/monkey-patch collectors for filesystem/network/processes/env/executables/package/MCP/DNS/outbound - SecurityEvent normalized model (source/category/action/subject/target/capability) → EventGraph - Drift Analyzer: declared vs static vs runtime → MATCH/UNDER_DECLARED/OVER_DECLARED - Correlation Engine: credential→file→subprocess→network attack paths (CRED_EXFIL, DATA_EXFIL) - Policy-as-Code: YAML allow/deny → PASS/WARN/BLOCK (policy check) - Regression Engine: security-diff old/ new/ → risk/grade delta + BLOCK decision Integration: - src/skillspector/security_inspection/* + src/skillspector/nodes/analyzers/offline_security_inspection.py (auto-discovered) - CLI: offline-scan --runtime, runtime-scan, policy, security-diff, security-report/server - pyproject: yara conditional for Windows, networkx/jinja2/fastapi/uvicorn, hatch templates/static - Tests: 44 passed (plugin/tests/test_security_plugin.py + test_comprehensive.py) - THIRD_PARTY_NOTICES.md for vendored cytoscape (offline, no CDN) Storage: SQLite + SBOM + reports under ~/.skill-inspector/, loopback only.
…ine plugin Signed-off-by: Kode Charya(Mukesh Choudhary) <Kodecharya@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add 100% offline, deterministic security inspection plugin for NVIDIA Skill Inspector.
Core (9 modules, air-gapped, no cloud/LLM/telemetry):
Intelligence layer (new):
Integration:
Storage: SQLite + SBOM + reports under ~/.skill-inspector/, loopback only.