ad-onprem-ldap

Pass

Audited by Gen Agent Trust Hub on Nov 15, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill invokes the 1Password CLI (op) using Bun.spawn to securely read the LDAP bind password and store newly generated user passwords. This approach avoids placing sensitive credentials in command-line arguments, environment variables, or plain-text files.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes potentially untrusted data retrieved from Active Directory (such as user-controlled attributes like display names or descriptions).
  • Ingestion points: Attributes returned from LDAP search operations in Tools/Ad.ts (e.g., sAMAccountName, displayName, description).
  • Boundary markers: The tool uses structured JSON output for CLI results and writes audit logs in .jsonl format, which helps prevent interpretation of data as instructions.
  • Capability inventory: The tool possesses significant Active Directory write capabilities, including password resets, account status toggling, and group membership management.
  • Sanitization: The skill implements robust RFC 4515 and RFC 4514 escaping in Tools/AdLib.ts (escapeFilter, escapeDnValue) for all data interpolated into LDAP filters and Distinguished Names.
  • [SAFE]: Several best-practice security features are implemented to prevent accidental or malicious misuse:
  • Dry-run Pattern: All write operations default to a dry-run mode and require an explicit --apply flag to execute, accompanied by a plan for human review.
  • Administrative Account Protection: Objects with adminCount=1 (privileged accounts) are protected by a safety gate that requires the --allow-protected flag.
  • OU Allowlisting: User creation and object moves are restricted to a specific list of Organizational Units defined in a local configuration file.
  • Auditing: Every successful write operation is recorded to a local audit log (~/.local/state/ad-onprem/audit.jsonl) with restricted file permissions (0o600).
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 15, 2026, 11:40 PM