Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
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
2026-06-10 06:53:01 +00:00

1.5 KiB

API Reference: BGP RPKI Validation Agent

Dependencies

Library Version Purpose
requests >=2.28 HTTP client for RIPEstat and Cloudflare RPKI APIs

CLI Usage

python scripts/agent.py \
  --asn AS13335 \
  --prefixes 1.1.1.0/24 104.16.0.0/12 \
  --output-dir /reports/ \
  --output rpki_report.json

Functions

validate_prefix_rpki(prefix) -> dict

Queries RIPEstat /rpki-validation/data.json for RPKI status (valid/invalid/unknown).

get_roas_for_asn(asn) -> list

Queries Cloudflare RPKI /api/v1/roas for Route Origin Authorizations.

get_prefix_overview(prefix) -> dict

Queries RIPEstat /prefix-overview/data.json for routing overview.

check_rpki_adoption(asn) -> dict

Compares announced prefixes against ROA coverage to calculate adoption percentage.

validate_multiple_prefixes(prefixes) -> list

Batch validates prefixes against RPKI.

generate_report(asn, prefixes) -> dict

Full report with adoption metrics, per-prefix validation, and recommendations.

APIs Used

API Endpoint
RIPEstat stat.ripe.net/data/rpki-validation/data.json
RIPEstat stat.ripe.net/data/announced-prefixes/data.json
Cloudflare RPKI rpki.cloudflare.com/api/v1/roas

Output Schema

{
  "asn": "AS13335",
  "adoption": {"announced_prefixes": 500, "roa_covered": 498, "coverage_pct": 99.6},
  "prefix_validation": [{"prefix": "1.1.1.0/24", "status": "valid"}],
  "recommendations": ["Create ROAs for 2 uncovered prefixes"]
}