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
85 lines
2.6 KiB
Markdown
85 lines
2.6 KiB
Markdown
# Process Injection Detection API Reference
|
|
|
|
## Volatility 3 Plugins
|
|
|
|
```bash
|
|
# Detect injected code (RWX memory, PE headers in non-image VADs)
|
|
vol3 -f memory.dmp windows.malfind
|
|
vol3 -f memory.dmp windows.malfind --pid 1234
|
|
|
|
# List processes
|
|
vol3 -f memory.dmp windows.pslist
|
|
|
|
# Scan for hidden processes
|
|
vol3 -f memory.dmp windows.psscan
|
|
|
|
# List DLLs for a process
|
|
vol3 -f memory.dmp windows.dlllist --pid 1234
|
|
|
|
# Dump injected code
|
|
vol3 -f memory.dmp windows.malfind --dump --pid 1234
|
|
|
|
# List threads
|
|
vol3 -f memory.dmp windows.threads --pid 1234
|
|
|
|
# VAD tree (memory regions)
|
|
vol3 -f memory.dmp windows.vadinfo --pid 1234
|
|
```
|
|
|
|
## Injection Techniques and API Sequences
|
|
|
|
| Technique | API Sequence |
|
|
|-----------|-------------|
|
|
| Classic DLL | OpenProcess -> VirtualAllocEx -> WriteProcessMemory -> CreateRemoteThread |
|
|
| Process Hollowing | CreateProcess(SUSPENDED) -> NtUnmapViewOfSection -> WriteProcessMemory -> ResumeThread |
|
|
| APC Injection | OpenThread -> VirtualAllocEx -> WriteProcessMemory -> QueueUserAPC |
|
|
| Reflective DLL | VirtualAlloc -> memcpy -> CreateThread (in-process) |
|
|
| Thread Hijacking | OpenThread -> SuspendThread -> SetThreadContext -> ResumeThread |
|
|
|
|
## Sysmon Event IDs for Injection
|
|
|
|
| Event ID | Name | Relevance |
|
|
|----------|------|-----------|
|
|
| 1 | ProcessCreate | Hollowed process creation (SUSPENDED) |
|
|
| 7 | ImageLoaded | Reflective DLL loads (unsigned) |
|
|
| 8 | CreateRemoteThread | Classic injection indicator |
|
|
| 10 | ProcessAccess | PROCESS_VM_WRITE + PROCESS_CREATE_THREAD |
|
|
| 25 | ProcessTampering | Image file replaced (hollowing) |
|
|
|
|
## Sysmon Config for Injection Detection
|
|
|
|
```xml
|
|
<Sysmon schemaversion="4.90">
|
|
<EventFiltering>
|
|
<ProcessAccess onmatch="include">
|
|
<GrantedAccess condition="is">0x1F0FFF</GrantedAccess>
|
|
<GrantedAccess condition="is">0x1FFFFF</GrantedAccess>
|
|
</ProcessAccess>
|
|
<CreateRemoteThread onmatch="exclude">
|
|
<SourceImage condition="is">C:\Windows\System32\csrss.exe</SourceImage>
|
|
</CreateRemoteThread>
|
|
</EventFiltering>
|
|
</Sysmon>
|
|
```
|
|
|
|
## python-evtx Usage
|
|
|
|
```python
|
|
import Evtx.Evtx as evtx
|
|
|
|
with evtx.Evtx("Sysmon.evtx") as log:
|
|
for record in log.records():
|
|
xml = record.xml()
|
|
if "<EventID>8</EventID>" in xml:
|
|
print("CreateRemoteThread:", record.timestamp())
|
|
```
|
|
|
|
## Suspicious Parent-Child Relationships
|
|
|
|
| Parent | Child | Indicator |
|
|
|--------|-------|-----------|
|
|
| winword.exe | cmd.exe, powershell.exe | Macro execution |
|
|
| svchost.exe | cmd.exe, powershell.exe | Service-based injection |
|
|
| explorer.exe | mshta.exe | COM hijack / LNK abuse |
|
|
| outlook.exe | powershell.exe | Email macro execution |
|