Given a command-control capability, most teams start by writing a blocklist of dangerous commands. Within a week of production use that approach runs into trouble. Administrators find that the "dangerous" command was one they legitimately needed during Saturday's change window. The security team finds that binary blocking either gets in the way of operations or collects so many exceptions that it stops mattering. Designing command control is a policy problem, and it needs more than two possible outcomes.
The same command carries different risk in different places
A service restart is routine inside a change window and alarming outside one. A bulk read of a customer table is legitimate for an analyst with a data request and suspicious from anyone else. DROP DATABASE is catastrophic on production and unremarkable on a developer's sandbox. A control that cannot tell these cases apart forces a choice between security and operability, and over time operability wins through exceptions.
The four verdicts
Tanflow PAM's Command Control evaluates every keystroke in real time and supports four policy verdicts. Each pairs a decision with a consequence.
- BLOCK + TERMINATE stops the command, ends the session immediately and alerts the SOC. It is meant for destructive operations on production, such as rm -rf, DROP DATABASE or destructive changes on network devices.
- BLOCK + NOTIFY stops the command and notifies administrators, but lets the session continue. It suits actions that are risky but recoverable, such as service restarts or configuration edits outside change windows.
- JUSTIFY makes the user enter a business justification before the command runs, and logs it. It fits sensitive reads such as exporting customer tables or accessing payment logs.
- ALLOW + WARN runs the command, shows the user a caution and flags the event in the audit trail. It covers patterns that are discouraged but still permitted, such as sudo to shared accounts or legacy tooling.
With four verdicts to choose from, the designer stops asking "allow or deny?" and asks what response fits this action, on this class of target, by this class of user.
How to design the policy
Start with the targets, before thinking about commands. What the target is matters more than any other variable. Production systems need the strictest settings, while staging and development can run much looser. Writing production and non-production policies separately avoids a common failure, where friction for developers builds political pressure that ends up weakening the production policy.
Then consider the users, because employees and vendors should not get the same latitude. A vendor engineer in a time-boxed maintenance window can reasonably face JUSTIFY and BLOCK verdicts for actions a senior internal administrator performs freely. The enterprise has less identity assurance over vendors and no managerial recourse.
Keep TERMINATE for actions that cannot be undone. Ending a session is disruptive by design, so use it only where letting the session continue is unacceptable, such as destroying data or erasing device configurations. If the strongest verdict is overused, operations teams learn to fear the platform.
Use JUSTIFY where an action is plausibly legitimate but someone must be accountable for it. The logged justification costs an honest user ten seconds. A dishonest user has to put a false statement on the record, timestamped and attached to a recorded session.
Use ALLOW + WARN while moving away from a pattern. Patterns being phased out, such as shared-account sudo and legacy tools, run under WARN first. That gives the organisation data on real usage before any later move to BLOCK, so the policy can be tightened on evidence instead of guesswork.
Example: a phased rollout
Take an enterprise IT team rolling out command policy in phases. In week one, everything on production runs under ALLOW + WARN, which builds a baseline of flagged events. In week three, the commands that are clearly destructive move to BLOCK + TERMINATE, out-of-window restarts to BLOCK + NOTIFY, and customer-data reads to JUSTIFY. The audit trail from the WARN phase shows who runs what and how often, which settles arguments about what the stricter tiers will break before they are switched on.
What auditors get
Graduated policy also produces graduated evidence. Auditors get verdict events as well as recordings: a command was blocked, a session was terminated, a justification was entered. These events show the control enforcing policy during sessions. Enforcement happens at the zero-agent gateway, so the evidence covers every session that passed through it, across SSH, RDP, database and device sessions.