Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
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
2026-06-10 06:53:01 +00:00

114 lines
2.3 KiB
Markdown

# API Reference: Active Directory Analysis with BloodHound
## SharpHound — Data Collection
### Syntax
```cmd
SharpHound.exe -c All -d domain.local
SharpHound.exe -c DCOnly --ldapusername user --ldappassword pass
```
### Collection Methods
| Flag | Data Collected |
|------|----------------|
| `All` | Everything below |
| `Default` | Group, Session, Trusts, ACL, ObjectProps |
| `DCOnly` | LDAP-only (no sessions) |
| `Session` | Active sessions |
| `ACL` | Access control lists |
| `ObjectProps` | User/computer properties |
## bloodhound-python — Cross-Platform
### Syntax
```bash
bloodhound-python -d domain.local -u user -p pass -c all --zip -ns 10.10.10.1
```
### Options
| Flag | Description |
|------|-------------|
| `-d` | Domain name |
| `-u` | Username |
| `-p` | Password |
| `-c` | Collection method |
| `-ns` | Nameserver (DC IP) |
| `--zip` | Output as ZIP |
## Neo4j Cypher Queries
### Shortest Path to Domain Admins
```cypher
MATCH p=shortestPath(
(u:User {owned:true})-[*1..]->(g:Group {name:'DOMAIN ADMINS@DOMAIN.LOCAL'})
) RETURN p
```
### Kerberoastable Users
```cypher
MATCH (u:User) WHERE u.hasspn=true AND u.enabled=true
RETURN u.name, u.serviceprincipalnames
```
### Unconstrained Delegation
```cypher
MATCH (c:Computer {unconstraineddelegation:true})
RETURN c.name, c.operatingsystem
```
### DCSync Rights
```cypher
MATCH p=(u)-[:GetChanges|GetChangesAll]->(d:Domain)
RETURN u.name, d.name
```
### AS-REP Roastable
```cypher
MATCH (u:User {dontreqpreauth:true})
RETURN u.name, u.enabled
```
## BloodHound JSON Format
### Users JSON
```json
{
"data": [{
"Properties": {
"name": "USER@DOMAIN.LOCAL",
"enabled": true,
"admincount": true,
"hasspn": false
},
"Aces": [],
"MemberOf": []
}]
}
```
## Neo4j Python Driver
### Connection
```python
from neo4j import GraphDatabase
driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j", "bloodhound"))
with driver.session() as session:
result = session.run("MATCH (n:User) RETURN count(n)")
```
## BloodHound CE API
### Authentication
```http
POST https://bloodhound:8080/api/v2/login
Content-Type: application/json
{"login_method": "secret", "secret": "api-key-here"}
```
### Search
```http
GET https://bloodhound:8080/api/v2/search?q=admin
Authorization: Bearer {token}
```