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
71 lines
2.1 KiB
Markdown
71 lines
2.1 KiB
Markdown
# API Reference: Analyzing Windows Registry for Artifacts
|
|
|
|
## regipy
|
|
|
|
### Open Registry Hive
|
|
|
|
```python
|
|
from regipy.registry import RegistryHive
|
|
|
|
reg = RegistryHive("/path/to/NTUSER.DAT")
|
|
key = reg.get_key("Software\\Microsoft\\Windows\\CurrentVersion\\Run")
|
|
print(key.header.last_modified)
|
|
for val in key.iter_values():
|
|
print(val.name, val.value)
|
|
```
|
|
|
|
### Iterate Subkeys
|
|
|
|
```python
|
|
key = reg.get_key("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
|
|
for subkey in key.iter_subkeys():
|
|
print(subkey.name, subkey.header.last_modified)
|
|
```
|
|
|
|
## Key Forensic Registry Paths
|
|
|
|
| Path | Hive | Artifact |
|
|
|------|------|----------|
|
|
| `Microsoft\Windows\CurrentVersion\Run` | SOFTWARE / NTUSER | Autostart entries |
|
|
| `Microsoft\Windows\CurrentVersion\RunOnce` | SOFTWARE / NTUSER | One-time autostart |
|
|
| `CurrentVersion\Explorer\UserAssist` | NTUSER | Program execution (ROT13) |
|
|
| `CurrentVersion\Explorer\RecentDocs` | NTUSER | Recently opened documents |
|
|
| `CurrentVersion\Explorer\TypedPaths` | NTUSER | Explorer address bar history |
|
|
| `ControlSet00X\Enum\USBSTOR` | SYSTEM | USB device history |
|
|
| `MountedDevices` | SYSTEM | Drive letter assignments |
|
|
| `CurrentVersion\Uninstall` | SOFTWARE | Installed software |
|
|
| `ControlSet00X\Control\ComputerName` | SYSTEM | Computer name |
|
|
| `ControlSet00X\Control\TimeZoneInformation` | SYSTEM | System timezone |
|
|
|
|
## UserAssist Decoding
|
|
|
|
```python
|
|
import codecs, struct
|
|
from datetime import datetime, timedelta
|
|
|
|
decoded_name = codecs.decode(rot13_name, "rot_13")
|
|
run_count = struct.unpack_from("<I", data, 4)[0]
|
|
timestamp = struct.unpack_from("<Q", data, 60)[0]
|
|
ts = datetime(1601, 1, 1) + timedelta(microseconds=timestamp // 10)
|
|
```
|
|
|
|
## RegRipper Plugins
|
|
|
|
```bash
|
|
# NTUSER.DAT analysis
|
|
rip.pl -r NTUSER.DAT -p userassist
|
|
rip.pl -r NTUSER.DAT -p recentdocs
|
|
rip.pl -r NTUSER.DAT -p typedurls
|
|
|
|
# SYSTEM hive
|
|
rip.pl -r SYSTEM -p compname
|
|
rip.pl -r SYSTEM -p usbstor
|
|
rip.pl -r SYSTEM -p shutdown
|
|
```
|
|
|
|
### References
|
|
|
|
- regipy: https://pypi.org/project/regipy/
|
|
- RegRipper: https://github.com/keydet89/RegRipper3.0
|
|
- Registry Explorer: https://ericzimmerman.github.io/#!index.md
|