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
56 lines
1.5 KiB
Markdown
56 lines
1.5 KiB
Markdown
# API Reference: Detecting Lateral Movement with Splunk
|
|
|
|
## Key Lateral Movement Techniques
|
|
|
|
| Technique | MITRE ID | Event Source |
|
|
|-----------|----------|-------------|
|
|
| Pass-the-Hash | T1550.002 | Event 4624 Logon_Type=3 NTLM |
|
|
| PSExec | T1569.002 | Sysmon Event 1 (PSEXESVC.exe) |
|
|
| WMI Remote Exec | T1047 | Sysmon Event 1 (wmiprvse.exe) |
|
|
| RDP Pivoting | T1021.001 | Event 4624 Logon_Type=10 |
|
|
| SMB/Admin Share | T1021.002 | Network logs dest_port=445 |
|
|
| WinRM | T1021.006 | Sysmon Event 1 (wsmprovhost.exe) |
|
|
|
|
## Splunk SPL Syntax
|
|
|
|
```spl
|
|
# Pass-the-Hash detection
|
|
index=wineventlog EventCode=4624 Logon_Type=3
|
|
| where Authentication_Package="NTLM"
|
|
| stats dc(Computer) as targets by Source_Network_Address
|
|
| where targets > 3
|
|
|
|
# PSExec detection
|
|
index=sysmon EventCode=1
|
|
| where ParentImage="*\\services.exe" AND Image="*\\PSEXESVC.exe"
|
|
```
|
|
|
|
## splunklib Python SDK
|
|
|
|
```python
|
|
import splunklib.client as client
|
|
import splunklib.results as results
|
|
|
|
service = client.connect(host="splunk", port=8089, token="...")
|
|
job = service.jobs.create("search index=wineventlog EventCode=4624")
|
|
for result in results.JSONResultsReader(job.results(output_mode="json")):
|
|
print(result)
|
|
```
|
|
|
|
## Windows Logon Types
|
|
|
|
| Type | Description |
|
|
|------|-------------|
|
|
| 2 | Interactive (console) |
|
|
| 3 | Network (SMB, PSExec) |
|
|
| 7 | Unlock |
|
|
| 10 | RemoteInteractive (RDP) |
|
|
|
|
## CLI Usage
|
|
|
|
```bash
|
|
python agent.py --generate-queries
|
|
python agent.py --generate-queries --techniques pass_the_hash psexec_execution
|
|
python agent.py --parse-results splunk_output.json
|
|
```
|