SecurityBrief Asia - Technology news for CISOs & cybersecurity decision-makers
Asia
PowerShell Isn't the Security Problem. Standing Privilege Is

PowerShell Isn't the Security Problem. Standing Privilege Is

Wed, 25th Nov 2026 (Today)
Mark Klinchin
MARK KLINCHIN Co-founder 12Port

Earlier this year, Huntress, a leading security company, investigated an attack that showed how quickly PowerShell can become a weapon once an attacker has legitimate access. Using stolen credentials, the attacker connected to a Windows server through RDP and ran a custom PowerShell script to map the company's Active Directory environment and identify systems, users, groups, and accounts. 

Huntress found strong evidence that the script had been written with help from a large language model. But AI wasn't what made the attack possible. The attacker already had what mattered. They had valid credentials, access to the environment, and a powerful administrative tool already available to them. 

That's the real security problem with PowerShell. The capabilities that make it indispensable to administrators are the same capabilities attackers can exploit once they gain privileged access.  

Why You Can't Just Block PowerShell  

PowerShell is woven into the way Windows environments are managed. Administrators use it to configure servers, manage Active Directory, automate routine tasks, and administer cloud services. MITRE ATT&CK documents PowerShell as a technique used by attackers for many of the same reasons. It is a classic example of living off the land, where an attacker uses legitimate tools already available in an environment rather than introducing software that may be easier to detect. 

Blocking PowerShell outright isn't realistic for most organizations, and monitoring alone has limits. Malicious activity doesn't always look malicious, especially when commands are being run with legitimate credentials. 

The fix isn't PowerShell. It's privilege. 

In a typical administrative workflow, someone signs in with an elevated account or uses a privileged password to perform a task. That credential may provide broad access and can remain valid long after the work is finished. If an attacker captures it, they inherit everything that credential can reach. 

A better approach separates the administrator from the privileged credential. Instead of knowing or possessing the password, the administrator authenticates using their own identity, with multifactor authentication (MFA) providing an additional check before privileged access is granted. They request only the privileged access they need and receive an authorized session without the underlying credential being exposed. 

That does not eliminate the possibility of an account being compromised, but it can substantially reduce what an attacker gets when it happens. 

Access Should Expire 

Protecting privileged credentials is only part of the answer. Organisations also need to limit how much privilege exists and how long someone has it. 

An administrator who needs elevated access to one server for 30 minutes doesn't need permanent administrative rights to that server, much less every other machine on the network. 

Just-in-time access changes that model by granting privilege when there is a legitimate need and removing it when the work is complete. Access can be limited to particular systems and specific periods of time, with additional approval required when appropriate. 

The distinction becomes important when an identity is compromised. Stealing someone's credentials should not automatically give an attacker every administrative privilege that person might need at some point in their job. 

These controls also have to work in the real world. Administrators still need PowerShell, RDP, SSH, and other familiar tools to do their jobs. Security shouldn't force them into cumbersome workflows that encourage workarounds. Agentless PAM provides one way to put privileged access controls around those existing workflows without installing software on every endpoint. Administrators can continue using familiar tools while access is authenticated, authorized, and limited to the time and systems required. 

The goal isn't to restrict the administrative tools people depend on. It's to reduce the amount of standing privilege available through them. 

You Still Need to See What Happened  

Reducing standing privilege doesn't replace PowerShell monitoring. Organisations should still enable appropriate logging, watch for suspicious administrative behavior, and keep systems patched. In the Huntress investigation, PowerShell Script Block Logging helped researchers reconstruct what the attacker had done. 

But logs become far more useful when they can be connected to the access that preceded the activity. Investigators need to know more than whether a particular command ran. They need to know who received privileged access, which system they accessed, when the access occurred, whether it was approved, and what happened during the session. 

Combining access control with monitoring can limit what an attacker is able to do while providing investigators with better context afterward. 

The AI angle is what got this Huntress case attention. But the real lesson is privilege. Attackers rarely need exotic malware or a fresh zero day when legitimate credentials give them access to administrative tools. 

PowerShell is powerful because administrators need it to be. The answer isn't to make it less powerful. It's to make sure the privilege behind it isn't standing there waiting to be exploited.