Using SIEM to Catch Misconfigured LDAP Exfiltration Attempts

Misconfigured LDAP Exfiltration: A SIEM‑First Approach

Modern enterprises still rely on LDAP for authentication, directory lookups, and policy distribution. When the directory server is misconfigured—open ports, weak ACLs, or unencrypted traffic—an attacker can harvest sensitive attributes (emails, group memberships, even passwords if the schema exposes them). Detecting such exfiltration early is a matter of correlating LDAP traffic patterns with anomalous outbound data flows. A SIEM that ingests both network flow logs and LDAP audit logs can surface these events before data leaves the perimeter.

[Read More]

When OAuth Refresh Tokens Live Forever: How to Force Short Expiry in Production

OAuth 2.0 refresh tokens are supposed to be long‑lived, but “forever” is a misnomer that can open a wide attack surface. A compromised refresh token gives an attacker persistent access without re‑authenticating, and if it never expires the window for damage widens. Below is a practical checklist that shows how to enforce short expiry, monitor usage, and mitigate risk without breaking the user experience.

1. Enforce Expiry at Issuance

Most IdPs expose a knob for refresh‑token lifetime. If you control the IdP, set a maximum TTL that matches your threat model.

[Read More]

Fixing Session Fixation in a Remember Me Cookie

Rotating session IDs in an e-commerce API

The scenario

Our e‑commerce API was built on a stateless REST layer that delegated authentication to a central identity service. The API accepted a short‑lived bearer token (JWT) and, for convenience, exposed a “Remember Me” feature that let users stay logged in across browser restarts. The implementation was simple: the client stored a cookie named REMEMBER_ME that contained a signed, encrypted token. When the browser sent the cookie back, the API would issue a new JWT and refresh the cookie.

[Read More]