Configuring ldap security hardening

From oyi77/1ai-skills · View interactive version

Configuring ldap security hardening is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when hardening LDAP directory services against common attacks including credential harvesting, LDAP injection, anonymous binding, and channel binding bypass. Covers LDAPS enforcement, channel binding, LDAP si

How to use this skill

Skill file

Configuring LDAP Security Hardening

Overview

Harden LDAP directory services against common attacks including credential harvesting, LDAP injection, anonymous binding, and channel binding bypass. Covers LDAPS enforcement, channel binding, LDAP signing, access control lists, and monitoring for LDAP-based attacks.

When to Use

Trigger phrases:

Prerequisites

Objectives

Security Controls

| Control | NIST 800-53 | Description |

|---------|-------------|-------------|

| Account Management | AC-2 | Lifecycle management |

| Access Enforcement | AC-3 | Policy-based access control |

| Least Privilege | AC-6 | Minimum necessary permissions |

| Audit Logging | AU-3 | Authentication and access events |

| Identification | IA-2 | User and service identification |

Verification

When NOT to Use

Red Flags

Process

# Example: IOC detection
import re

IOC_PATTERNS = {
    "ip": r"\b(?:\d{1,3}\.){3}\d{1,3}\b",
    "domain": r"\b[a-z0-9-]+\.[a-z]{2,}\b",
    "hash_md5": r"\b[a-f0-9]{32}\b",
    "hash_sha256": r"\b[a-f0-9]{64}\b",
}

def extract_iocs(text: str) -> dict:
    return {k: re.findall(v, text) for k, v in IOC_PATTERNS.items()}
  1. Analyze the task requirements
  2. Apply domain expertise
  3. Verify output quality

Anti-Rationalization Table

| Rationalization | Reality |

|---|---|

| "We are too small to be targeted" | Automated attacks target everyone. Size does not matter. |

| "Security slows us down" | A breach slows you down 100x more. Build security in from the start. |

| "We will fix it after launch" | Vulnerabilities in production are exploited within hours. Fix before deploy. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.