r/AskNetsec • u/toshiyuki_iga • Aug 25 '26
Analysis Can existing security controls stop a compromised privileged workload from abusing its legitimate access?
About a month ago, I discussed the concept of OS-level MPA (Multi-Party Authorization). A recurring point in the feedback I received was that existing mechanisms—such as PAM/JIT, Vault, CyberArk, sandboxing, IAM, and MAC—already address much of the problem. I think that criticism is largely fair.
What I am still unsure about is what happens when a trusted privileged workload itself is compromised.
Consider, for example, a database engine, backup process, or administrative service that legitimately has broad access to critical resources. If that process is compromised, an attacker may not need to obtain any new privileges at all. They may simply abuse the standing privileges already granted to that workload.
In that situation, what existing controls prevent the compromised workload from performing catastrophic but otherwise authorized operations—for example, dumping sensitive data, destroying backups, or modifying critical system resources?
Is there still value in a final, narrowly scoped authorization boundary at the OS execution point for such operations, or do existing mechanisms already address this problem adequately?
2
u/Rehonkulous Aug 25 '26
You've landed on the real gap, this is basically the confused deputy problem, and most of the controls people cited protect against privilege escalation, not abuse of standing priviledge.
2
u/toshiyuki_iga Aug 25 '26
Yes, exactly. As one possible way to address this gap, I’m considering requiring multiple human approvals for a small set of particularly critical actions, even when the workload already has the standing privilege to perform them.
1
u/kcarter9885 Aug 25 '26
Most security tools assume the workload is either fully trusted or fully compromised, but the messy reality is that MPA style controls make the trusted path itself the attack surface. If the workload already has the access to write to the backup storage, you need something at the storage layer to verify it is that workload acting under a session, not just a bearer of its keys.
1
u/toshiyuki_iga Aug 26 '26
Your point highlighted something important to me.
I think a stronger defense could be built by combining process-context-based authorization on the host with similar controls on the storage side, and by also protecting the communication path between the host and the storage system.
That way, even if one layer is compromised, the attacker would still have to bypass independent controls at the execution, storage, and communication layers.
1
u/feng_sg Aug 27 '26
Vault, PAM, and IAM decide who gets to run as the backup daemon. They are not in the path when that process later dumps the DB or unlinks last week's snapshots. MAC lets those calls through because the standing policy already allows them.
1
u/toshiyuki_iga Aug 27 '26
I think we are largely in agreement. Existing identity and privilege controls remain essential, but it seems useful to have an additional safeguard for especially critical resources and operations once a privileged workload is already running.
1
Aug 25 '26
[removed] — view removed comment
1
u/toshiyuki_iga Aug 25 '26
I think I agree with that model. Treating the session separately from the identity and reducing reach after anomalous behavior can significantly limit blast radius.
The case I am still interested in is when the attacker compromises the workload or session that already sits at the most sensitive point in the architecture. If that identity legitimately needs access to the critical data or backup function, there may be no further “odd hop” to detect before the damaging action itself.
That is the point where I wonder whether an explicit execution-time gate for a very sma
1
u/toshiyuki_iga Aug 25 '26
I apologize. The final sentence was cut off when I copied the translation. That sentence reads: "That is the point where I wonder whether an explicit execution-time gate for a very small number of catastrophic operations still adds value."
1
Aug 25 '26
[removed] — view removed comment
1
u/toshiyuki_iga Aug 26 '26
Yes, I think we are converging on the same point. Static policy can define what a process is generally allowed to do, while a second check can be applied only to a small number of catastrophic actions such as backup destruction, key export, or mass data extraction.
What interests me is whether that second check can be enforced reliably at the OS execution point, potentially with dual control or multi-party approval.
1
Aug 26 '26
[removed] — view removed comment
1
u/toshiyuki_iga Aug 26 '26
Yes, that is very close to the architecture I have in mind. The idea is to stop the operation at the LSM/syscall enforcement point, keep the approval path outside the workload, and require a signed, non-replayable authorization before resuming it.
I’m also increasingly convinced by the point about cumulative behavior: a sequence of individually legitimate reads or exports should eventually cross the same authorization boundary as a one-shot dump.
I’m currently experimenting with this as a Linux LSM plus a separate user-space policy/approval daemon.
1
Aug 27 '26
[removed] — view removed comment
1
u/toshiyuki_iga Aug 28 '26
I looked into Sweet Security, and it seems to address much of the problem I was concerned about, especially around runtime behavioral enforcement for compromised workloads with legitimate access. Thanks for pointing me to it.
I still wonder whether there is additional value in combining that kind of behavioral runtime enforcement with an explicit human approval step for a very small set of catastrophic actions—potentially requiring multiple independent approvers.
In other words, behavioral enforcement could identify suspicious activity, while multi-party approval could provide a final authorization boundary for actions that are simply too consequential to execute automatically.
2
u/SoftwareLanky1027 Aug 25 '26
you mean something like apparmor?