mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +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
2.0 KiB
2.0 KiB
API Reference: SSL Stripping Assessment Agent
Overview
Automates SSL stripping vulnerability assessment by checking HSTS headers, preload list status, redirect chains, mixed content, and security headers using curl subprocess calls.
Dependencies
| Package | Version | Purpose |
|---|---|---|
| subprocess | stdlib | Runs curl for HTTP header inspection |
| re | stdlib | Regex parsing of HSTS header values |
| json | stdlib | Parses hstspreload.org API responses |
External Tools Required
| Tool | Purpose |
|---|---|
| curl | HTTP/HTTPS header and content fetching |
Core Functions
check_hsts_header(target_url)
Fetches response headers and parses Strict-Transport-Security values.
- Returns:
dictwithhsts_present,max_age,include_subdomains,preload
check_hsts_preload(domain)
Queries the hstspreload.org API to check browser preload list inclusion.
- Returns:
dictwithstatusandpreloadedboolean
check_redirect_chain(url)
Follows HTTP redirects to verify HTTPS upgrade behavior.
- Returns:
dictwithinitial_url,final_url,upgrades_to_https
check_mixed_content(url)
Scans page HTML for HTTP resource references on HTTPS pages.
- Returns:
dictwithmixed_content_foundandhttp_reference_count
check_security_headers(url)
Checks for CSP, X-Content-Type-Options, X-Frame-Options, and Upgrade-Insecure-Requests.
- Returns:
dict[str, bool]- header name to presence mapping
run_assessment(targets)
Full assessment pipeline for a list of target domains.
- Parameters:
targets(list[str]) - domain names - Returns:
list[dict]- per-target assessment results withssl_strip_risk
Risk Levels
| Level | Criteria |
|---|---|
| HIGH | No HSTS header present |
| MEDIUM | HSTS present but not in preload list |
| LOW | HSTS with preload list inclusion |
Usage
python agent.py example.com banking.example.com api.example.com