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
64 lines
1.7 KiB
Markdown
64 lines
1.7 KiB
Markdown
# API Reference: Detecting Evasion Techniques in Endpoint Logs
|
|
|
|
## Key Windows Event IDs for Evasion
|
|
|
|
| Event ID | Source | Evasion Technique |
|
|
|----------|--------|-------------------|
|
|
| 1102 | Security | Audit log cleared (T1070.001) |
|
|
| Sysmon 2 | Sysmon | Timestomping (T1070.006) |
|
|
| Sysmon 8 | Sysmon | CreateRemoteThread (T1055) |
|
|
| Sysmon 10 | Sysmon | Process Access / LSASS (T1003) |
|
|
| 4688 | Security | Process creation with cmdline |
|
|
|
|
## python-evtx Usage
|
|
|
|
```python
|
|
import Evtx.Evtx as evtx
|
|
with evtx.Evtx("Sysmon.evtx") as log:
|
|
for record in log.records():
|
|
xml = record.xml()
|
|
# Parse EventID, CommandLine, SourceImage, TargetImage
|
|
```
|
|
|
|
## Evasion Detection Patterns
|
|
|
|
```python
|
|
# Log clearing
|
|
r"wevtutil\s+(cl|clear-log)"
|
|
r"Clear-EventLog"
|
|
# Security tool disable
|
|
r"Set-MpPreference\s+-DisableRealtimeMonitoring\s+\$true"
|
|
r"sc\s+(stop|delete)\s+WinDefend"
|
|
# AMSI bypass
|
|
r"[Ref].Assembly.GetType.*AMSI"
|
|
r"amsiInitFailed"
|
|
```
|
|
|
|
## MITRE ATT&CK TA0005 Techniques
|
|
|
|
| Technique | ID | Detection |
|
|
|-----------|----|-----------|
|
|
| Indicator Removal | T1070 | Log clearing, file deletion |
|
|
| Timestomping | T1070.006 | Sysmon Event ID 2 |
|
|
| Process Injection | T1055 | Sysmon Event ID 8 |
|
|
| Impair Defenses | T1562.001 | AV/EDR disabling commands |
|
|
| AMSI Bypass | T1562.001 | PowerShell AMSI patching |
|
|
|
|
## Splunk SPL Detection
|
|
|
|
```spl
|
|
index=sysmon (EventCode=2 OR EventCode=8 OR EventCode=10)
|
|
| eval technique=case(
|
|
EventCode=2, "Timestomping",
|
|
EventCode=8, "Process Injection",
|
|
EventCode=10, "Process Access")
|
|
| stats count by technique, SourceImage, Computer
|
|
```
|
|
|
|
## CLI Usage
|
|
|
|
```bash
|
|
python agent.py --evtx-file Sysmon.evtx
|
|
python agent.py --evtx-file Security.evtx
|
|
```
|