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
43 lines
1.6 KiB
Markdown
43 lines
1.6 KiB
Markdown
# API Reference — Performing HTTP Parameter Pollution Attack
|
|
|
|
## Libraries Used
|
|
- **requests**: Send HTTP requests with duplicate/encoded parameters
|
|
- **urllib.parse**: URL encoding and parameter manipulation
|
|
|
|
## CLI Interface
|
|
```
|
|
python agent.py precedence --url <target> [--param id]
|
|
python agent.py test --url <target> [--method GET|POST]
|
|
python agent.py waf --url <target> --param <name> --value <blocked_value>
|
|
```
|
|
|
|
## Core Functions
|
|
|
|
### `test_parameter_precedence(url, param_name, headers)` — Detect server parameter handling
|
|
Sends duplicate parameters to determine if server uses FIRST, LAST, BOTH, or UNKNOWN value.
|
|
Tests three value pairs to establish consistent behavior.
|
|
|
|
### `test_hpp_payloads(url, method, headers)` — Execute HPP payload suite
|
|
Three categories of payloads:
|
|
- **duplicate_param**: Basic duplicate parameter injection
|
|
- **encoding_bypass**: URL-encoded, null byte, CRLF injection
|
|
- **array_syntax**: PHP arrays, comma-separated, indexed arrays
|
|
|
|
Compares responses against baseline to detect anomalies (status/length changes).
|
|
|
|
### `test_waf_bypass(url, blocked_param, blocked_value, headers)` — Test WAF evasion
|
|
Five bypass techniques: direct, duplicate_first, duplicate_last, encoded, array syntax.
|
|
Detects if any technique passes WAF filtering (status 403/406/429 = blocked).
|
|
|
|
## Payload Categories
|
|
| Category | Count | Purpose |
|
|
|---|---|---|
|
|
| duplicate_param | 3 | Parameter precedence abuse |
|
|
| encoding_bypass | 3 | URL encoding / CRLF injection |
|
|
| array_syntax | 3 | PHP/framework array handling |
|
|
|
|
## Dependencies
|
|
```
|
|
pip install requests
|
|
```
|