Hub documentation
Nightwatch
Nightwatch
We’re seeing more attacks that use AI agents to target inference infrastructure and providers of models or datasets. Attackers use public Hub repositories, as well as other collaboration platforms, as a pivot or attack vector.
We built Nightwatch, our Proactive Agent Security service, using what we learned from the July 2026 OpenAI/HF incident. Its security agent scans Hub activity logs in real time for signs of these attacks.

Nightwatch is a paid add-on available only to Enterprise customers. The price reflects the large volumes of tokens (both open and closed models) used for continuous scanning. Contact our team to explore Nightwatch for your organization.
Implementation

When Nightwatch detects unusual activity, a Slack agent sends your team an alert. You can also route these alerts to your organization’s security incident ingestion system.
Example Slack alerts
Unusual access token activity
We detected unusual activity on the Hugging Face account of one of your organization members.
Since October 29, 2026, we’ve seen requests from two suspicious IP addresses using their
xyzaccess token. The token has the write role and was created on October 12, 2025.On October 29 and November 9, 2026, the token was used to read 60 of your organization’s private repositories. Of those, 22 were cloned.
The token has been revoked. We can share the full list of affected repositories and the timeline.
Private dataset made public
Update on GitHubAt 09:16 UTC, an admin account made your private dataset
acme/research-previewpublic. The request came from an IP address that geolocates to Singapore. Eight minutes earlier, the same account was active from its usual network in Paris.At 09:20 UTC, we saw the first download from outside your organization. The dataset is still public. Was this a planned release?
If this was unexpected, you can make the dataset private again and review the admin account’s recent activity. We can share the timeline and both IP addresses to help you investigate.