Security audit report: NIST 800-53 / DISA STIG V-220629 to V-220641 / 800-207 ZTA cross-repo findings - #3
Open
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
…IG V-220629 to V-220641, NIST 800-207 ZTA Captures Phase 1 (SonarQube/bandit) findings, Phase 2 (compliance matrix), Phase 3 (pip-audit clean), and traces residual risk plus follow-ups. Remediation PRs and Jira tracking links populated as child sessions complete. Session: https://app.devin.ai/sessions/13fa523dc5d241c7bb17b9296ec7c1c4
Contributor
Author
Original prompt from Jake
|
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
Summary
Adds
docs/security-audit-report.md— the executive deliverable for the 9-phase security audit that covered bothCOG-GTM/federal_security_complianceandCOG-GTM/USArmy-Dshell.The report consolidates:
COG-GTM_USArmy-Dshell(4 BLOCKER + 65 CRIT + 32 MAJ + 74 MIN + 49 INFO + 7 hotspots) and bandit findings for both repos (FSC = 0, Dshell = 11 with 4 HIGH weak-hash + 1 MEDIUMeval()+ 1 MEDIUM request without timeout + 3 LOW try/except/pass).pip-auditagainst latest available versions of all declared deps in both repos: zero known CVEs. Finding F-11 calls out thatdshell/setup.pyis unpinned, which is a supply-chain stability risk addressed in the Dshell remediation PR.devin/knowledge.md,devin/playbook.md, anddevin/zero-trust-knowledge.md. Confirmed runtime bug F-01:ZeroTrustConfig.PUBLIC_ENDPOINTS = field(default_factory=...)evaluates to adataclasses.Fieldobject (NOT a list) becauseZeroTrustConfigis a plain class. Iterating it crashes.docs/security-audit-report.md.16 findings (F-01 through F-16) ranging from High (PUBLIC_ENDPOINTS runtime bug, 18% coverage, 4 weak-hash HIGH) to Informational (duplicate Session/AuditEventType classes). Remediation routed through two parallel child sessions:
datetime.utcnow→datetime.now(timezone.utc), full-SHA-256 chained integrity hash withverify_log_chain(), password-expiration enforcement (NIST IA-5), 4 new test files to push coverage ≥90%.decode.py:166,httpdump.py:56), pinnedsetup.pydeps, newdshell/security_utils.py, fuzz tests,.pre-commit-config.yaml,.github/workflows/security.yml.Review & Testing Checklist for Human
Risk: yellow (documentation-only delivery; the child PRs carry the actual code changes).
PUBLIC_ENDPOINTSruntime bug reproduces in your environment:cd templates/python && python -c "from zero_trust_middleware import ZeroTrustConfig; print(type(ZeroTrustConfig.PUBLIC_ENDPOINTS))"— should print<class 'dataclasses.Field'>.Notes
This PR contains only
docs/security-audit-report.mdso it can land independently of the remediation PRs. The two child PRs (FSC + Dshell remediation) are open against their respective repos; their links will be added to §12 once Devin Review and CI clear. See parent session for the full audit log.Link to Devin session: https://app.devin.ai/sessions/13fa523dc5d241c7bb17b9296ec7c1c4
Requested by: @jakexcosme
Devin Review