Commit ab24a3a
Add defense-grade compliance modules for federal document processing
Bump version to 0.2.0. Add five new compliance modules:
- CUI Detection (32 CFR Part 2002 / NIST 800-171): Detects CUI markings,
classification banners (UNCLASSIFIED through TS//SCI), dissemination
controls (NOFORN, REL TO, ORCON, PROPIN, FISA), validates CUI Registry
categories, flags marking deficiencies, generates handling recommendations.
- Enhanced PII/PHI Detection: 30+ detection categories with confidence
scoring. Covers HIPAA PHI (MRN, health plan IDs, patient IDs), defense
PII (DoD ID, CAC, clearances, CAGE, DUNS), financial PII (routing
numbers, SWIFT/BIC, EIN/TIN), and ITAR/EAR markers. Maps to HIPAA,
Privacy Act, GLBA, PCI DSS, DFARS, and NIST 800-53 SI-4/SI-19.
- Document Sanitization: Metadata stripping, EXIF detection, hidden text
(zero-width chars, CSS hiding), macro/script quarantine, embedded file
scanning, hyperlink exfiltration analysis, font fingerprinting, tracked
changes detection, hidden Excel sheets. SHA-256 integrity verification.
- Export Control Screening (ITAR/EAR): USML categories I-XXI, ECCN
patterns with CCL mapping, 60+ controlled technology keywords (encryption,
night vision, propulsion, guidance, stealth, DEW, nuclear, cyber), foreign
person/entity detection for deemed exports, dual-use indicators.
- Audit Trail (FedRAMP-ready): Tamper-evident SHA-256 hash chain, CEF
export for SIEM integration, chain-of-custody reporting, integrity
verification. Maps to NIST 800-53 AU-2/3/6/8/9/11/12 and 800-171 3.3.x.
Pipeline integration via --cui-scan, --sanitize, --export-control,
--defense-mode, --audit-log, and --compliance-report CLI flags.
Comprehensive test suites for all five modules (170+ test cases).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 796da84 commit ab24a3a
File tree
17 files changed
+6431
-321
lines changed- docsingest
- compliance
- tests
17 files changed
+6431
-321
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
35 | 64 | | |
36 | 65 | | |
37 | 66 | | |
38 | 67 | | |
39 | 68 | | |
40 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
41 | 76 | | |
42 | 77 | | |
43 | 78 | | |
| |||
46 | 81 | | |
47 | 82 | | |
48 | 83 | | |
49 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
50 | 91 | | |
51 | 92 | | |
52 | 93 | | |
| |||
61 | 102 | | |
62 | 103 | | |
63 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
64 | 110 | | |
65 | 111 | | |
66 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments