Tanflow IAM Suite & PAM: identity and privileged access security for the enterprise. Get a Demo →

8 August 2024 · Tanflow Ventures

Real-Time Command Control on Production Infrastructure with Tanflow PAM

Tanflow PAM Command Control checks every command against policy at the gateway before it reaches the target and responds with one of four verdicts: block and terminate, block and notify, require a justification, or allow with a warning.

Session recording tells you what happened after it has happened. When an administrator runs rm -rf against the wrong directory on a production host, or a vendor engineer makes a destructive change on a core switch, the recording documents the damage in detail. Preventing it takes a control that sees the command before the target does and can refuse it.

Where the risk sits in a privileged session

In a privileged session, risk comes down to individual commands. The shell that runs a harmless status check can, one line later, run a command that deletes data, drops a database or takes a service down. The people typing are usually competent and well-intentioned, and fatigue, typing into the wrong window and copy-paste accidents cause plenty of production incidents with no malice involved. When there is malice or a compromised account, an interactive session is the attacker's most flexible tool.

Traditional controls sit outside the session: change approvals come before it and log reviews come after. While the session is running, which is when the risk is real, they do nothing.

Detective controls assume the damage can be survived and reversed. For many privileged actions it can't. A dropped production database or an erased device configuration means an outage measured in hours however quickly the log review spots it. A plain allow/deny command filter doesn't work well either, because plenty of commands are legitimate in one context and reckless in another.

Four verdicts for risky commands

Tanflow PAM's Command Control checks every keystroke against policy in real time at the gateway, before the command reaches the target. The control sits in the connection path of the zero-agent architecture, so it applies to sessions across the protocols the gateway carries, with nothing installed on targets.

Policy can return one of four verdicts:

  • BLOCK + TERMINATE stops the command, kills the session instantly and alerts the SOC. It is meant for destructive operations on production, such as rm -rf, DROP DATABASE or destructive changes on network devices, where letting the session continue is itself unacceptable.
  • BLOCK + NOTIFY stops the command and notifies administrators while the session continues. It suits risky actions that can be recovered from, such as service restarts or configuration edits outside change windows.
  • JUSTIFY makes the user enter a business justification before the command runs, and logs the justification. It suits sensitive reads such as exporting customer tables or accessing payment logs, where the action may be legitimate but someone has to account for it.
  • ALLOW + WARN lets the command run, shows the user a caution and flags the event in the audit trail. It suits discouraged patterns that are still permitted, such as sudo to shared accounts or legacy tooling.

A blocked command in a recorded session

Tanflow's own illustration of a recorded session shows the mechanics. An administrator on a production database host runs a routine systemctl status with no interference. Moments later, an rm -rf against the database's data directory is blocked by policy, the session is flagged, the SOC is notified and the recording is preserved. The routine command cost the user nothing, and the destructive one never reached the host.

Command control is the innermost of several layers. Before any command is checked, the user has authenticated with MFA, been authorised for the target and received credentials injected from the vault.

A system integrator on a bank's production server

Consider a bank that authorises a system integrator to work on a production application server. Under graduated command policy, the integrator works normally within the agreed scope. A service restart outside the change window is blocked and administrators are notified. An attempt to read a customer-data export path requires a logged justification, and anything destructive ends the session and pages the SOC. The vendor keeps the access the job needs and nothing beyond it.

What auditors get from command-level policy

Command-level policy turns intent into enforceable rules and records, for each command, what was attempted, which verdict applied and what justification was given. For auditors this is stronger evidence than session video alone, because it shows the control acting on the session as well as observing it. Tanflow describes real-time, verdict-based command control, including over database sessions and built into the platform, as rare in the market.

← All posts

See the platform behind the posts

The Tanflow IAM Suite and PAM run on your infrastructure and go live in 2-4 weeks.