Skip to content
View mahdi-al-hakim's full-sized avatar

Block or report mahdi-al-hakim

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
mahdi-al-hakim/README.md

Mahdi Alhakim

Security researcher on AI agents and identity systems, and a software engineer who builds MCP servers and agent tooling. Based in Beirut. US citizen, no sponsorship needed, open to relocating.

  • Found and fixed a false SAFE in Microsoft's RAMPART: a safety probe passed while the agent it tested exfiltrated data on every turn, because a tool-only adapter couldn't observe side effects. Merged as a breaking change. Also merged a PyRIT reset hook for realtime and WebSocket targets.
  • Reported a prompt-injection gap in github-mcp-server's lockdown mode, fixed in v1.10.0 (writeup).
  • Three credited reports to Keycloak: one fixed and shipped in 26.8.2, and my fix for another in review (writeup). A merged overflow fix in netcdf-c.
  • Warden runs a Claude agent on IT offboarding under policy, approval, audit and revocation. In an eval on Claude Haiku, Sonnet and Opus 5.5, none of 30 live runs acted on an extra write that an instruction planted in the data asked for. No arm made that write the right call, so this doesn't show a model refusing it.
  • controlarm won't record a security test as negative until the same run shows the target answering and the plain version of the attack being refused.
  • malt-reward-hacking: in METR's MALT dataset, a check for one word finds 223 of the 224 runs labeled sabotage and none of the 6,047 normal ones, because the agent names what it was told to do. So a monitor's score on that label can't show it finds sabotage an agent keeps quiet about.
  • Hack The Box Ambassador in Beirut. I built WeSecure, a boot-to-root machine with a full writeup.

Writeups and resume: mahdi-al-hakim.github.io · mahdi.a.alhakim@gmail.com · LinkedIn

Pinned Loading

  1. WeSecure WeSecure Public

    A Linux boot-to-root VM (CTF machine): a multi-stage chain through a forged CRC32 integrity check and a confused deputy to root. Full writeup and a reproducible Packer/Ansible build.

    Shell

  2. controlarm controlarm Public

    A harness that refuses to call a security test negative until the run shows the target answering and the plain attack being refused

    Python

  3. mahdi-al-hakim.github.io mahdi-al-hakim.github.io Public

    Security writeups

    HTML

  4. malt-reward-hacking malt-reward-hacking Public

    In METR's MALT, one word finds 223 of 224 sabotage runs and 0 of 6,047 normal runs: a label-word baseline for prompted runs, and a monitor on organic reward hacking.

    Python

  5. warden warden Public

    A control plane that runs a Claude agent on access-management work under policy, human approval, a hash-chained audit log, and a revocation kill switch.

    Python