Skip to content

817 structured cybersecurity skills for AI agents · Mapped to 6 frameworks: MITRE ATT&CK, NIST CSF 2.0, MITRE ATLAS, D3FEND, NIST AI RMF & MITRE F3 (Fight Fraud) · agentskills.io standard · Works with Claude Code, GitHub Copilot, Codex CLI, Cursor, Gemini CLI & 20+ platforms · 29 security domains · Apache 2.0

2.3 KB
Raw Blame

API Reference: Active Directory Analysis with BloodHound

SharpHound — Data Collection

Syntax

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

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

MATCH p=shortestPath(
    (u:User {owned:true})-[*1..]->(g:Group {name:'DOMAIN [email protected]'})
) RETURN p

Kerberoastable Users

MATCH (u:User) WHERE u.hasspn=true AND u.enabled=true
RETURN u.name, u.serviceprincipalnames

Unconstrained Delegation

MATCH (c:Computer {unconstraineddelegation:true})
RETURN c.name, c.operatingsystem

DCSync Rights

MATCH p=(u)-[:GetChanges|GetChangesAll]->(d:Domain)
RETURN u.name, d.name

AS-REP Roastable

MATCH (u:User {dontreqpreauth:true})
RETURN u.name, u.enabled

BloodHound JSON Format

Users JSON

{
  "data": [{
    "Properties": {
      "name": "[email protected]",
      "enabled": true,
      "admincount": true,
      "hasspn": false
    },
    "Aces": [],
    "MemberOf": []
  }]
}

Neo4j Python Driver

Connection

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

POST https://bloodhound:8080/api/v2/login
Content-Type: application/json

{"login_method": "secret", "secret": "api-key-here"}

Search

GET https://bloodhound:8080/api/v2/search?q=admin
Authorization: Bearer {token}