[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115155":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":15,"starSnapshotCount":15,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},115155,"Copperhound","BenTheCyberOne\u002FCopperhound","BenTheCyberOne","Rust attack-path analysis for AD, ADCS and Entra ID","",null,"Rust",69,5,52,0,1,16,4,53.93,"Apache License 2.0",false,"main",[24,25,26,27,28],"active-directory","bloodhound","entra-id","pentest","rust","2026-11-17 20:15:43","2026-11-22 21:01:02","\u003Cp align=\"center\">\u003Cimg src=\"docs\u002Flogo.svg\" width=\"112\" alt=\"CopperHound logo\">\u003C\u002Fp>\n\n# CopperHound\n\nOpen-source Active Directory, ADCS and Entra ID \u002F Azure attack-path analysis,\nbuilt in Rust for very large environments. CopperHound ingests SharpHound,\nbloodhound-python, ldapdomaindump and AzureHound output, raw LDIF dumps,\nSysinternals AD Explorer snapshots and Windows \u002F Defender logon data into a\nmemory-mapped graph store and runs\npath, exposure and CHQL queries directly on it, with no graph database. One\ncontainer serves the web UI and REST API.\n\n![All shortest paths from a helpdesk user to Tier Zero](docs\u002Fscreenshots\u002Fall-paths.png)\n\n\u003Ctable>\n\u003Ctr>\n\u003Ctd>\u003Cimg src=\"docs\u002Fscreenshots\u002Ffindings.png\" alt=\"Findings ranked by exposure impact\">\u003C\u002Ftd>\n\u003Ctd>\u003Cimg src=\"docs\u002Fscreenshots\u002Fremediation.png\" alt=\"Remediation planner\">\u003C\u002Ftd>\n\u003Ctd>\u003Cimg src=\"docs\u002Fscreenshots\u002Fposture.png\" alt=\"Posture over time\">\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftable>\n\n\u003Csub>Screenshots use fabricated demo data (\u003Ccode>scripts\u002Fdemo_data.py\u003C\u002Fcode>).\u003C\u002Fsub>\n\n**Documentation:** [User guide](docs\u002FUSER_GUIDE.md) · [Deployment](docs\u002FDEPLOYMENT.md) ·\n[Data sources](docs\u002FDATA.md) · [REST API](docs\u002FAPI.md) · [CHQL](docs\u002FCHQL.md) ·\n[Edge reference](docs\u002FEDGES.md) · [OT](docs\u002FOT.md) · [Performance](docs\u002FPERFORMANCE.md) ·\n[Architecture](docs\u002FARCHITECTURE.md) · [Changelog](CHANGELOG.md)\n\n## Quick start (Docker)\n\n```sh\ndocker compose up -d --build\ndocker compose logs copperhound | grep \"Initial admin password\"\n```\n\nOpen \u003Chttp:\u002F\u002F127.0.0.1:8090>, sign in as `admin`, drop your SharpHound \u002F\nAzureHound `.zip` or `.json` files on the **Data** tab and press **Rebuild\ngraph**. `COPPERHOUND_ADMIN_PASSWORD` sets the password, and\n`COPPERHOUND_PORT` \u002F `COPPERHOUND_HOST` change the published address (default\n`127.0.0.1:8090`, so it can run next to BloodHound on 8080).\n\n**No data yet?** `python scripts\u002Fdemo_data.py demo\u002F` writes a fabricated\nenvironment (AD, ADCS and Entra ID with deliberate weaknesses) to upload; see\n[Try it with demo data](docs\u002FUSER_GUIDE.md#try-it-with-demo-data).\n\nWithout Docker: `cd web && npm ci && npm run build`, then\n`cargo run --release -- serve` (defaults: `127.0.0.1:8080`, data in `.\u002Fdata`,\nUI from `.\u002Fweb\u002Fdist`).\n\nAccounts, API tokens, the watch folder, scheduled reports, change alerts, HTTPS\nand single sign-on (OpenID Connect, SAML 2.0): [docs\u002FDEPLOYMENT.md](docs\u002FDEPLOYMENT.md).\n\n## Risk analysis\n\nComputed in the background after every ingest:\n\n- **Attack-path findings** — 50 finding types across AD, ADCS, Entra ID,\n  hybrid and OT (DCSync outside Tier Zero, control of Tier Zero, rights of broad groups,\n  delegation to Tier Zero, ESC escalations, NTLM relay, tenant-takeover Graph permissions,\n  synced accounts holding Entra Tier Zero roles, …), each with severity,\n  impact, remediation guidance and MITRE ATT&CK techniques. Every edge finding\n  is **measured**: \"fixing this removes N principals' paths to Tier Zero\",\n  computed by re-running the exposure analysis without its edges.\n- **NTLM relay** — coercion-and-relay paths to SMB, LDAP, LDAPS and AD CS\n  (ESC8 web enrollment, ESC11 RPC), modelled like BloodHound CE, plus ESC14 and\n  ESC16. The built-in LDAP collector can optionally probe SMB signing, DC LDAP\n  signing and AD CS web enrollment itself.\n- **Sessions from logon data** — where SharpHound cannot see sessions, upload\n  Security event 4624 exports (`scripts\u002FExport-CopperHoundLogons.ps1`) or Defender\n  XDR `DeviceLogonEvents`. Every session records when it was first and last\n  seen; old ones can age out.\n- **Cost-aware paths** — besides the fewest hops, find the path that takes the\n  least effort or is least likely to be noticed (session age counts), and rank\n  the principals with the cheapest route to Tier Zero.\n- **What-if simulation** — remove any set of edges, edge kinds or nodes (or add\n  targets) and see before\u002Fafter exposure per kind, instantly.\n- **Remediation planner** — a dominator tree over every attack path finds the\n  choke object whose fix cuts the most principals off from the zone\n  *entirely*. The plan is recomputed after each step, so the cumulative\n  reduction curve is exact. Members of zone groups are treated\n  as part of the zone, so it never proposes \"remove the admins from Domain\n  Admins\", and Tier Zero objects are never proposed as fixes for any zone. Give zones weights and it plans across all of them at once,\n  ranking fixes by weighted exposure cut.\n- **Remediation hand-off** — turn fix-list edges or plan steps into a\n  PowerShell script (one suggested command per edge, objects named by SID \u002F\n  object id) or into Jira issues, ServiceNow records or signed webhook events\n  with the guidance and command for each edge.\n- **Privilege zones** — define your own target sets with a CHQL selector\n  (\"Tier 1 servers\", \"Finance file servers\", …) and get exposure, choke points\n  and remediation plans for each. In a zone's member review you certify the\n  members that belong and revoke ones the rule picked up by mistake (they drop\n  out of the zone); new matches show as pending.\n- **OT** — mark Purdue levels and add PLCs with `CanProgram` edges from an\n  asset inventory (OpenGraph). OT findings, zone templates and queries then find\n  paths from IT into the plant. Two more inputs are optional: fix costs for\n  maintenance windows, and network conduits so paths respect the firewall.\n  See [docs\u002FOT.md](docs\u002FOT.md).\n- **Posture over time** — one snapshot per ingest (exposure %, findings by\n  severity, per-finding counts) and a diff between any two snapshots listing\n  exactly which finding items appeared or were resolved.\n\nCLI equivalents: `copperhound findings corp.chg`, `copperhound plan corp.chg --steps 10`.\n\n## Web UI\n\nA WebGL graph canvas (sigma.js) with search, pathfinding, node details, \"How was\nthis derived?\" for every derived edge, the CHQL editor and query library, and\npages for findings, remediation, zones, posture, reports, data and\nadministration. Walkthrough with screenshots: [docs\u002FUSER_GUIDE.md](docs\u002FUSER_GUIDE.md).\n\n## CHQL\n\nA read-only Cypher dialect compiled to native graph operations — multiple\npatterns and `MATCH` clauses, `OPTIONAL MATCH`, `WITH`, aggregation,\n`ORDER BY`\u002F`SKIP`\u002F`LIMIT`, `UNION`, undirected and variable-length hops, path\nfunctions and pattern predicates. Most BloodHound CE and legacy queries run\nunchanged; see the [CHQL reference and Cypher compatibility table](docs\u002FCHQL.md).\n\n```\nMATCH p = shortestPath((u:User {name:'JDOE@CORP.LOCAL'})-[*1..]->(t {tier0:true})) RETURN p\nMATCH p = allShortestPaths((g:Group)-[*1..]->(t {tier0:true})) WHERE g.name STARTS WITH 'DOMAIN USERS@' RETURN p\nMATCH (u:User {hasspn:true, enabled:true}) WHERE u.pwdlastset \u003C 1600000000 RETURN u.name, u.pwdlastset\nMATCH (g:Group)-[:AdminTo]->(c:Computer) RETURN g.name, count(c)\nMATCH (p)-[r:ADCSESC1|ADCSESC6a]->(d:Domain) RETURN p, r, d\nMATCH (n {owned:true}), (m:Group) WHERE m.objectid ENDS WITH '-512' MATCH p = shortestPath((n)-[*1..]->(m)) RETURN p\nMATCH (dc)-[:MemberOf*0..]->(g:Group) WHERE g.objectid ENDS WITH '-516' WITH collect(dc) AS dcs\n  MATCH (c:Computer {unconstraineddelegation:true}) WHERE NOT c IN dcs RETURN c\n```\n\nOn the command line: `copperhound query corp.chg \"MATCH …\"`. `days_ago(n)`\ngives relative timestamps, e.g. `WHERE u.lastlogontimestamp \u003C days_ago(90)`.\n\nThe UI ships with **173 prebuilt queries** in 16 categories (Domain\nInformation, Dangerous Privileges, Kerberos, Delegation, ACL Abuse, Sessions &\nLateral Movement, GPO & OU, Hygiene, Shortest Paths, Tier Zero, Owned, ADCS,\nAzure \u002F Entra ID, Azure Resources, Hybrid and OT \u002F ICS), each tagged and tested against a\nsynthetic graph. Your own queries can be saved server-side.\n\n## Performance\n\nRecords are scanned from memory-mapped files on every core into a compressed\nsparse row graph that opens in milliseconds; paths and Tier Zero exposure run as\npurpose-built BFS passes on it. A 10 GB SharpHound collection (12.5M objects,\n65.7M edges) ingests in 23–31 s, and a shortest path to Tier Zero on it takes\nunder 1 ms. Design, choke-point algorithm and benchmarks:\n[docs\u002FPERFORMANCE.md](docs\u002FPERFORMANCE.md).\n\n## Usage\n\n```sh\n# Ingest: any mix of .json files, .zip archives and directories\ncopperhound ingest 20241105_BloodHound.zip ldd_out\u002F -o corp.chg\n# Several collections of the same domain: the newest collection wins per object\n# (see docs\u002FDATA.md; `--merge union` for a plain union)\ncopperhound ingest 20241001093000_BloodHound.zip 20241105101500_BloodHound.zip -o corp.chg\n\ncopperhound stats corp.chg\n\n# Shortest attack path (names or SIDs\u002FGUIDs, case-insensitive)\ncopperhound path corp.chg --from jdoe@corp.local --to \"DOMAIN ADMINS@CORP.LOCAL\"\ncopperhound path corp.chg --from jdoe@corp.local --to-tier0 --exclude HasSession\n# Cheapest path by attacker effort (or --cost stealth) instead of fewest hops\ncopperhound path corp.chg --from jdoe@corp.local --to-tier0 --cost effort\n\n# Tier Zero exposure and the edges whose removal cuts the most attack paths\ncopperhound tier0 corp.chg --top 25\ncopperhound tier0 corp.chg --json > exposure.json\n\n# Blast radius\ncopperhound reach corp.chg --from WS042.CORP.LOCAL\n\n# Property filter (JSON filter tree, see docs\u002FAPI.md) and name search\ncopperhound filter corp.chg '{\"and\":[{\"kind\":\"User\"},{\"truthy\":\"enabled\"},{\"truthy\":\"hasspn\"}]}'\ncopperhound search corp.chg backup --kind User\ncopperhound columns corp.chg        # list property columns (builds them for older graphs)\n```\n\n`--all-edges` includes non-traversable edges (e.g. `GetChanges`, `TrustedBy`);\n`--exclude A,B` drops edge kinds; `--threads N` caps parallelism.\n\n## Supported input\n\nSharpHound (v4–v6, CE) and bloodhound-python JSON, SharpHound ADCS, AzureHound\n(v2, v3), ldapdomaindump, LDIF (`ldapsearch`, `ldifde`, gzipped), Sysinternals AD\nExplorer snapshots and OpenGraph JSON for custom node and edge kinds, as files,\ndirectories or `.zip` archives. Sessions can also come from logon data (Security\nevent 4624 via `scripts\u002FExport-CopperHoundLogons.ps1`, or Defender XDR\n`DeviceLogonEvents`). CopperHound can also collect over LDAP itself.\nSeveral collections of the same domain merge object by object, newest wins.\nFormats, raw LDAP collection, derived edges, Tier Zero defaults and merge rules:\n[docs\u002FDATA.md](docs\u002FDATA.md).\n\n## Layout\n\n| crate | role |\n|---|---|\n| `ch-model` | node\u002Fedge kinds, flags, Tier Zero rules |\n| `ch-store` | CSR build, on-disk columnar format, mmap open, lookups |\n| `ch-ingest` | scanner, SharpHound \u002F ldapdomaindump \u002F AzureHound \u002F LDIF \u002F AD Explorer parsers, interner, merge, ADCS + Azure post-processing |\n| `ch-engine` | paths, Tier Zero exposure, choke points, reach |\n| `ch-query` | CHQL parser, planner, executor |\n| `ch-server` | REST API (axum), auth, uploads, ingest jobs, static UI |\n| `ch-synth` | synthetic dataset generator |\n| `copperhound` | CLI (`ingest`, `serve`, `query`, `path`, `tier0`, `reach`, `stats`, `synth`) |\n| `web\u002F` | React + TypeScript + sigma.js UI |\n| `scripts\u002F` | `demo_data.py`: fabricated demo environment; `accuracy-diff.sh`; `Export-CopperHoundLogons.ps1`: session data from logon events |\n| `tools\u002F` | helper scripts (`ldap-member-ranges.sh` \u002F `.ps1`: complete large-group `member` ranges for LDIF dumps) |\n\nSee [docs\u002FARCHITECTURE.md](docs\u002FARCHITECTURE.md) for design details and the roadmap.\n\n## Changelog\n\nEach version, in short; the details are in [CHANGELOG.md](CHANGELOG.md).\n\n- **0.4.1** (2026-11-17): bug fixes. The remediation planner no longer proposes\n  Tier Zero objects as fixes, and Tier Zero objects no longer count as exposed in\n  other zones; chart axes fixed for small values.\n- **0.4.0** (2026-11-17): NTLM relay, sessions from logon data and cost-aware paths.\n  - NTLM relay edges (SMB, LDAP, LDAPS, AD CS web and RPC enrollment), ESC16,\n    ESC14 and more AD edges, with opt-in network probes in the LDAP collector.\n  - Sessions from Windows logon events or Defender XDR, with first \u002F last seen\n    times and a maximum session age.\n  - Paths by least effort or stealth, and the cheapest routes to Tier Zero.\n  - Members of Tier Zero groups now count as Tier Zero; UI and data quality\n    fixes.\n- **0.3.0** (2026-11-13): zone weights and cross-zone planning.\n  - Weight each zone, and the remediation planner ranks fixes by weighted\n    exposure across all zones at once; reports gain a zone section.\n  - **Add to zone…** from the canvas, and new zone templates for\n    infrastructure, risky accounts and the cloud.\n- **0.2.0** (2026-11-13): OT support and bug fixes.\n  - OT: `CanProgram` edges, Purdue levels, OT findings, queries and zone\n    templates; fix costs in the remediation planner; network reachability\n    through firewall conduits. See [docs\u002FOT.md](docs\u002FOT.md).\n  - Fixes from a security review: query and ingest denial of service, report\n    and PowerShell injection, SSO login CSRF, secret handling. Plus query\n    correctness fixes, and BloodHound-signed uploads over 8 MiB work again.\n- **0.1.0** (2026-11-11): first public release.\n\n## License\n\nApache-2.0. CopperHound is an independent project and is not affiliated with\nSpecterOps or BloodHound; it reads the open collector output formats.\n\nUse CopperHound only against environments you are authorised to assess.\n","CopperHound 是一个面向大规模企业环境的开源攻击路径分析工具，专注于 Active Directory、AD CS（证书服务）和 Entra ID（Azure AD）的安全态势评估。它基于 Rust 构建，采用内存映射图存储，直接解析 SharpHound、AzureHound、ldapdomaindump 等多种数据源（包括 LDIF、AD Explorer 快照及 Windows 登录日志），无需依赖外部图数据库，支持实时路径发现、暴露面量化计算与自定义 CHQL 查询，并提供 Web UI 和 REST API。适用于红队评估、蓝队加固验证及常态化身份基础设施风险治理场景。",2,"2026-11-24 04:50:32","CREATED_QUERY"]