mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 16:40:24 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
52 lines
1.4 KiB
Markdown
52 lines
1.4 KiB
Markdown
# API Reference: Implementing DMARC/DKIM/SPF Email Security
|
|
|
|
## dnspython Lookups
|
|
|
|
```python
|
|
import dns.resolver
|
|
# SPF
|
|
answers = dns.resolver.resolve("example.com", "TXT")
|
|
# DMARC
|
|
answers = dns.resolver.resolve("_dmarc.example.com", "TXT")
|
|
# DKIM
|
|
answers = dns.resolver.resolve("selector._domainkey.example.com", "TXT")
|
|
```
|
|
|
|
## SPF Record Syntax
|
|
|
|
| Mechanism | Example | Meaning |
|
|
|-----------|---------|---------|
|
|
| `include:` | `include:_spf.google.com` | Authorize sender |
|
|
| `ip4:` | `ip4:203.0.113.0/24` | Allow IP range |
|
|
| `-all` | End of record | Hard fail others |
|
|
| `~all` | End of record | Soft fail (weak) |
|
|
| `+all` | End of record | Allow all (insecure) |
|
|
|
|
## DMARC Policy Levels
|
|
|
|
| Policy | Action | Severity if Missing |
|
|
|--------|--------|---------------------|
|
|
| `p=reject` | Reject failing mail | Recommended |
|
|
| `p=quarantine` | Send to spam | Acceptable |
|
|
| `p=none` | Monitor only | HIGH risk |
|
|
|
|
## Recommended DNS Records
|
|
|
|
```
|
|
# SPF
|
|
v=spf1 include:_spf.google.com -all
|
|
|
|
# DMARC
|
|
v=DMARC1; p=reject; pct=100; rua=mailto:dmarc@example.com; adkim=s; aspf=s
|
|
|
|
# DKIM (provider-specific key)
|
|
selector._domainkey.example.com TXT "v=DKIM1; k=rsa; p=MIIBIjAN..."
|
|
```
|
|
|
|
### References
|
|
|
|
- SPF RFC 7208: https://www.rfc-editor.org/rfc/rfc7208
|
|
- DMARC RFC 7489: https://www.rfc-editor.org/rfc/rfc7489
|
|
- DKIM RFC 6376: https://www.rfc-editor.org/rfc/rfc6376
|
|
- dnspython: https://dnspython.readthedocs.io/
|