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

57 lines
1.6 KiB
Markdown

# API Reference: Cloudflare DDoS Mitigation Agent
## Dependencies
| Library | Version | Purpose |
|---------|---------|---------|
| requests | >=2.28 | HTTP client for Cloudflare API v4 |
## CLI Usage
```bash
python scripts/agent.py \
--api-token CF_API_TOKEN \
--output-dir /reports/
```
## Functions
### `CloudflareClient(api_token)`
Authenticated client using Bearer token for Cloudflare API v4.
### `list_zones() -> list`
GET `/zones` - List all managed zones.
### `get_zone_analytics(zone_id, since) -> dict`
GET `/zones/{id}/analytics/dashboard` - Traffic analytics for time period.
### `get_firewall_events(zone_id, limit) -> list`
GET `/zones/{id}/security/events` - Recent firewall/WAF events.
### `get_ddos_settings(zone_id) -> dict`
GET `/zones/{id}/firewall/ddos_protection` - DDoS protection configuration.
### `create_rate_limit_rule(zone_id, url_pattern, threshold, period) -> dict`
POST `/zones/{id}/rate_limits` - Create rate limiting rule.
### `set_security_level(zone_id, level) -> dict`
PATCH `/zones/{id}/settings/security_level` - Set security level (low/medium/high/under_attack).
## Cloudflare API Endpoints
| Endpoint | Method | Purpose |
|----------|--------|---------|
| `/zones` | GET | Zone listing |
| `/zones/{id}/analytics/dashboard` | GET | Traffic data |
| `/zones/{id}/security/events` | GET | Security events |
| `/zones/{id}/rate_limits` | POST | Rate limiting |
## Output Schema
```json
{
"summary": {"zones_assessed": 3, "total_threats": 15420},
"zones": [{"name": "example.com", "traffic": {"threats_blocked": 5140}}]
}
```