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
55 lines
1.4 KiB
Markdown
55 lines
1.4 KiB
Markdown
# API Reference: Implementing API Security Posture Management
|
|
|
|
## API Discovery from Traffic
|
|
|
|
```python
|
|
import re
|
|
# Normalize paths: /users/123 -> /users/{id}
|
|
normalized = re.sub(r"/\d+", "/{id}", path)
|
|
normalized = re.sub(r"/[0-9a-f-]{8,}", "/{id}", normalized)
|
|
```
|
|
|
|
## API Sensitivity Classification
|
|
|
|
| Category | Patterns | Sensitivity |
|
|
|----------|----------|-------------|
|
|
| PII | `/users`, `/profile`, `/account` | HIGH |
|
|
| Financial | `/payments`, `/billing` | HIGH |
|
|
| Auth | `/login`, `/token`, `/oauth` | HIGH |
|
|
| Admin | `/admin`, `/config` | HIGH |
|
|
| Health | `/health`, `/status` | LOW |
|
|
|
|
## Risk Scoring Model
|
|
|
|
| Factor | Points | Description |
|
|
|--------|--------|-------------|
|
|
| High sensitivity data | +30 | PII, financial, auth |
|
|
| High error rate (>10%) | +20 | Possible abuse |
|
|
| State-changing methods | +10 | PUT, DELETE, PATCH |
|
|
| High consumer count | +10 | Large attack surface |
|
|
| Auth endpoint | +15 | Credential target |
|
|
|
|
## 42Crunch API Audit
|
|
|
|
```bash
|
|
# CI/CD integration
|
|
curl -X POST https://platform.42crunch.com/api/v1/apis \
|
|
-H "X-API-KEY: $API_KEY" \
|
|
-F "file=@openapi.yaml"
|
|
```
|
|
|
|
## Salt Security API
|
|
|
|
```python
|
|
import requests
|
|
headers = {"Authorization": "Bearer <token>"}
|
|
# Discover shadow APIs
|
|
resp = requests.get("https://api.salt.security/v1/apis", headers=headers)
|
|
```
|
|
|
|
### References
|
|
|
|
- OWASP API Security Top 10: https://owasp.org/API-Security/
|
|
- 42Crunch: https://42crunch.com/
|
|
- Salt Security: https://salt.security/
|