A junction point is a Windows filesystem reparse point that makes one directory path resolve to another location. Attackers can abuse it when privileged processes follow user-controlled paths without validation, redirecting file operations into sensitive directories or unintended targets.
Expanded Definition
A junction point is a Windows filesystem reparse point that causes one directory path to resolve to another location. In practice, it behaves like a redirect inside the filesystem namespace, so software may believe it is operating in one folder while the operating system transparently sends the request elsewhere.
In NHI and agentic security work, junction points matter because privileged automation often handles files, logs, caches, and deployment artifacts without a human in the loop. If a service account, CI job, or maintenance agent follows a user-controlled path, the path can be redirected into a sensitive directory, enabling unintended writes, deletes, or disclosure. This is a filesystem trust boundary issue, not just a Windows convenience feature. The closest standards language is indirect control of access paths and least-privilege handling, as reflected in the NIST Cybersecurity Framework 2.0, although no single standard governs junction-point abuse as a standalone topic yet.
The most common misapplication is treating a path as trustworthy because it was validated once, which occurs when privileged code validates the string but not the resolved filesystem target.
Examples and Use Cases
Implementing junction-aware file handling rigorously often introduces extra validation steps and operational friction, requiring organisations to weigh safer automation against simpler deployment and maintenance workflows.
- Backup software runs as SYSTEM and is pointed at a staging folder. A user creates a junction so the backup job writes into an unexpected directory, causing overwrite or disclosure of sensitive data.
- A privileged cleanup task removes temporary files based on a directory path. If the path is redirected through a junction, the task can delete files outside the intended scope.
- A build pipeline uses a workspace owned by a low-privilege account. A malicious junction changes where artifacts are read or written, turning an ordinary job into a supply-chain risk. This is especially relevant when secrets are stored outside approved vaults, a pattern highlighted in Ultimate Guide to NHIs.
- An agentic tool with file-system access processes uploaded content and follows a redirected folder path. The agent can be tricked into touching files it was never meant to access, which maps to broader path-handling concerns in the NIST Cybersecurity Framework 2.0.
- Administrators use junctions intentionally during migrations to preserve application compatibility. That legitimate use becomes risky when the junction is later left in place after the move, creating a hidden redirect for privileged processes.
Why It Matters in NHI Security
Junction-point abuse is dangerous because non-human identities often operate with broad file and system access, yet their behavior is rarely inspected as closely as a human administrator’s. That gap matters when service accounts, deployment agents, and remediation tools touch filesystem paths that can be influenced by local users or upstream automation. The operational consequence is not just tampering with files. It can lead to credential exposure, corrupted logs, unsafe rollback actions, and stealthy persistence inside automation paths.
NHIMG research shows that 97% of NHIs carry excessive privileges, which means a redirected path can quickly become a high-impact event when privileged automation is involved. The same Ultimate Guide to NHIs also notes that only 5.7% of organisations have full visibility into their service accounts, making it harder to trace which identities executed a dangerous path operation. Practitioners should treat junctions as part of the broader NHI attack surface, alongside secret exposure and path validation failures, and align controls with the NIST Cybersecurity Framework 2.0 for access control and integrity monitoring.
Organisations typically encounter the risk only after a privileged job overwrites, deletes, or exposes the wrong directory, at which point junction-point analysis becomes operationally unavoidable to address.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-06 | Path manipulation and unintended access routes are core NHI abuse paths. |
| OWASP Agentic AI Top 10 | A-04 | Agent tool access can be abused when filesystem actions follow redirected paths. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege path handling supports controlled access to system resources. |
| NIST Zero Trust (SP 800-207) | SC | Zero Trust requires explicit verification of access to resources, including file targets. |
| CSA MAESTRO | Agentic workflows need guardrails around tools that can redirect file operations. |
Validate resolved paths and block privileged file operations from following user-controlled junctions.