Teams often miss abuse because the activity resembles routine administration, API usage, or developer workflow. They focus on single alerts instead of patterns such as repeated reconnaissance queries, unexpected file writes, suspicious user agents, or access from Tor and VPS infrastructure. Effective detection depends on correlating identity, endpoint, and application telemetry across the full access chain.
Why malicious activity hides so easily in SaaS and source control
The core mistake is treating suspicious activity as if it will look obviously malicious. In SaaS and source control systems, the same actions used by administrators and developers, token use, repo browsing, sync jobs, API calls, file writes, and permission changes, are also the most practical way to abuse access. That means detection has to be behavior-aware, context-aware, and chain-aware.
In practice, the hard part is not seeing one unusual event, it is recognising when several ordinary-looking events combine into a credible attack path. Repeated reconnaissance queries, access from atypical infrastructure, or sudden bursts of repository and file activity matter more when they occur after a new token, a new session, or an unexpected privilege change.
One useful reference point is the scale of exposure around non-human access material: NHI Mgmt Group reports that only 5.7% of organisations have full visibility into their service accounts. That visibility gap explains why routine-looking automation traffic so often becomes the blind spot where abuse hides, including in SaaS admin consoles and source control platforms.
Teams also underrate how much attacker tradecraft depends on normal platform behaviour. Stolen tokens, OAuth grants, API keys, and session material can produce perfectly valid requests, so a control plane log may show “allowed” activity even when the access itself is compromised. The detection problem is therefore less about signature matching and more about identifying abnormal intent inside legitimate protocol use.
Patterns that matter more than single alerts
Single-event alerting breaks down in these environments because abuse is distributed across small actions. A query that looks harmless once may become meaningful when it is repeated across repositories, projects, tenants, or permission scopes, especially if the same actor then pivots into exports, file writes, webhook changes, or secret retrieval.
- Repeated reconnaissance queries against users, repos, groups, tickets, or audit data.
- Unexpected file writes, branch changes, or configuration edits from accounts that normally read only.
- Suspicious user agents, headless tooling, or unusual client patterns that do not match the normal developer or admin workflow.
- Access originating from Tor exits, VPS hosts, or other infrastructure inconsistent with the account’s history.
- Chains of events that show access expansion, for example read, enumerate, export, modify, then exfiltrate.
For source control specifically, detection should treat repository access, token use, package publishing, CI/CD changes, and secret access as one connected surface. For SaaS, the same principle applies across admin actions, API use, SSO sessions, and collaboration features, because adversaries often move through whichever path has the weakest anomaly signal.
A practical example of why this matters is token abuse in SaaS ecosystems. NHIMG’s Salesloft OAuth token breach and BeyondTrust API key breach both show that access material can be turned into routine-looking platform activity unless teams correlate the surrounding sequence, not just the individual request.
How practitioners should tune detection and investigation
The best detection programs start with the access chain, not the alert queue. If a request is suspicious, investigators should ask where the session came from, what token or credential enabled it, which application or repo objects were touched, and whether the same actor then performed follow-on actions that changed scope or exposed data.
What to verify: Confirm that telemetry covers identity, endpoint, and application layers for the same actor, then test whether your log sources can reconstruct a full session without gaps. If you cannot connect authentication, API use, and downstream object activity, you will miss low-and-slow abuse even when every individual log source is healthy.
Common mistake: Treating developer workflows as inherently benign. Fast-moving engineering activity is noisy, but that noise should be used as a baseline to detect deviation, not as a reason to ignore unusual geography, tooling, or volume.
What to measure: Track how often an investigation requires more than one telemetry source to confirm suspicious access, and whether high-risk actions are visible as joined events rather than isolated alerts. The goal is not more alerts, it is better correlation around the actions that actually change risk.
Practitioner takeaway: In SaaS and source control, malicious activity usually wins by blending into legitimate access, so the winning control is cross-domain correlation, not louder alerting.
Risk and Threat Considerations
These environments are attractive because one compromised token, session, or developer workflow can unlock broad read, write, or administrative power without triggering classic intrusion patterns. The main risk is not only theft of data, but quiet persistence through access that looks normal to the platform and to the operator.
Failure mechanism: Defenders rely on isolated events, weak baselines, or UI-centric review, while the attacker distributes activity across many small, permitted actions. That allows reconnaissance, privilege use, and exfiltration to stay below simple threshold alerts.
Impact: The result can be prolonged undetected access, repository tampering, secrets exposure, downstream SaaS compromise, and loss of trust in the integrity of engineering or collaboration systems.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | DE.CM — Continuous Monitoring | Continuous monitoring is central to spotting blended SaaS and source-control abuse patterns. |
| DE.AE — Anomalies and Events | The question is about distinguishing malicious activity from normal-looking events. | |
| PR.AA — Identity Management, Authentication, and Access Control | SaaS and source-control abuse often begins with valid but misused access material. | |
| Recommendation — Correlate telemetry across identity, endpoint, and application logs to detect suspicious access chains. Tune detections to flag anomalous sequences, not isolated events. Tighten authentication and access controls around tokens, sessions, and privileged workflows. | ||
| CIS Controls v8 | 8 — Audit Log Management | Effective detection depends on usable logs across the access chain. |
| 6 — Access Control Management | Abuse often succeeds through legitimate but excessive or misused access. | |
| Recommendation — Centralise and review audit logs for API use, repo actions, and administrative changes. Restrict and review access paths that allow routine-looking abuse to scale. | ||
| MITRE ATT&CK | T1078 — Valid Accounts | The abuse path commonly uses legitimate SaaS or repo credentials and tokens. |
| T1213 — Data from Information Repositories | Source control and SaaS repositories are common targets for stealthy collection. | |
| Recommendation — Hunt for abnormal use of valid accounts across source control and SaaS activity. Monitor repository and SaaS data access patterns for staged collection and export. | ||
Practitioner Guidance
What to prioritise: Build detection around the combinations that change meaning, not around event volume alone. A small number of correlated signals, new token plus new source infrastructure plus unusual object access, is more actionable than a long list of individual anomalies.
What good looks like: Analysts can move from a suspicious request to a complete access narrative that includes who authenticated, what path they used, what they touched, and whether the activity fits the account’s normal operating pattern. If that story cannot be reconstructed quickly, the environment is still under-instrumented.
Practitioner takeaway: The core measure of maturity is whether your team can separate legitimate automation from blended abuse before the attacker turns ordinary platform behavior into persistence.
Related resources from NHI Mgmt Group
- What do security teams get wrong about detecting attacker movement through SaaS environments?
- What do teams get wrong about detecting malicious open-source code?
- What do security teams get wrong about least privilege in SaaS and cloud environments?
- What do security teams get wrong about role-based access control in SaaS products?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org