Hugging Face open-sources Nightwatch, a security agent that caught a zero-day exploit attempt in the wild

Thom_Wolf · x · 2026-11-25

After the Hugging Face Hub was hit by a swarm of frontier agents in July, the team realized manual defense wasn't viable and built Nightwatch, a security agent that watches an organization's Hub activity in real time: token usage, private repo creation, visibility changes, and logins from new locations.

When something looks off, it investigates and messages the security team on Slack with a detailed story and actions — e.g. "A token created a year ago just read 60 of your private repos from two unknown IPs. 4 were cloned. We revoked it."

Running on HF's own infrastructure for weeks, it has already flagged an in-the-wild zero-day exploit attempt on a third-party library. It's now being released publicly.

Original post →

More from coding & agent

coding & agent channel →