This new keylogger uses Microsoft PowerShell scripts to quietly steal sensitive information — here’s how to protect your data

Shadowed hands on a digital background reaching for a login prompt.
Image Credit: Shutterstock (Image credit: Shutterstock)

A recent report by CYFIRMA has revealed the emergence of a new keylogger operating via a PowerShell script, a task automation and configuration management framework from Microsoft.

A keylogger is a type of malicious software that captures every keystroke on an infected system. By recording keyboard inputs, keyloggers can gather sensitive information such as login credentials, credit card numbers, and personal communications, and are often used to steal financial data or spy on individuals and organizations.

The keylogger analyzed in CYFIRMA's research uses Microsoft’s PowerShell script to capture keystrokes stealthily. PowerShell's native integration with Windows, combined with its powerful scripting capabilities, makes it an attractive target for attackers seeking to execute commands without direct user interaction.

PowerShell based keylogger

The researchers note this PowerShell keylogger showcases several advanced features that enhance its stealth and effectiveness in capturing sensitive information.

This includes its command and scripting interpreter, which enables the keylogger to execute commands through PowerShell without requiring user interaction, significantly complicating detection efforts.

The keylogger also performs system discovery, gathering critical information such as user profile directories, volume details, and cryptographic settings.

Furthermore, the keylogger establishes Command-and-Control (C2) communication through both a cloud server and an Onion server on the Tor network. This dual-channel communication not only maintains anonymity for the attackers but also complicates tracing efforts back to their source. It also incorporates a screen capture feature, allowing attackers to obtain visual data from the infected system in addition to logging keystrokes.

To evade detection, the keylogger employs encoded command execution, transmitting commands using Base64 encoding. This technique obscures the commands from traditional security measures.

It also makes persistent connection attempts via a SOCKS proxy, ensuring that even if initial connection attempts fail, the keylogger will continue trying to establish communication. While the current version of the keylogger lacks a fully developed persistence mechanism, the incomplete code indicates that future updates may enhance its ability to maintain a foothold on infected systems.

Given the advanced nature of this PowerShell-based keylogger, CYFIRMA notes organizations should implement robust cybersecurity measures to defend against such threats, including:

  • Enhance security policies: Organizations should enforce stringent security policies to restrict the execution of unauthorized PowerShell scripts. This may involve disabling or limiting PowerShell usage where it is unnecessary and actively monitoring for any unauthorized execution attempts.
  • Invest in advanced threat detection: Implement advanced threat detection systems that leverage machine learning and behavioral analytics. These systems can more effectively detect and respond to sophisticated threats, such as keyloggers.
  • Educate employees: Conduct regular training sessions to raise awareness among employees about the dangers of phishing and other social engineering techniques, which are frequently used to deploy keyloggers.
  • Conduct regular system audits: Schedule frequent system audits and integrity checks to detect any unauthorized modifications, including the presence of keyloggers. These audits help ensure compliance with established security policies.
  • Deploy endpoint protection: Utilize endpoint protection solutions designed to detect and block keylogger activities. These solutions should be capable of identifying threats that operate using non-interactive PowerShell processes to bolster overall security.

More from TechRadar Pro

TOPICS
Efosa Udinmwen
Freelance Journalist

Efosa has been writing about technology for over 7 years, initially driven by curiosity but now fueled by a strong passion for the field. He holds both a Master's and a PhD in sciences, which provided him with a solid foundation in analytical thinking. Efosa developed a keen interest in technology policy, specifically exploring the intersection of privacy, security, and politics. His research delves into how technological advancements influence regulatory frameworks and societal norms, particularly concerning data protection and cybersecurity. Upon joining TechRadar Pro, in addition to privacy and technology policy, he is also focused on B2B security products. Efosa can be contacted at this email: udinmwenefosa@gmail.com

Read more
A white padlock on a dark digital background.
A new and dangerous keylogger is on the loose - here's how to stay safe
Hands typing on a keyboard surrounded by security icons
Infostealers on the rise: the latest concern for organizational defenses
A hacker typing on a MacBook laptop with code on the screen.
This devious phishing site repurposes legitimate web elements like CAPTCHA pages for malware distribution
Illustration of a laptop with a magnifying glass exposing a beetle on-screen
Microsoft Outlook targeted by new malware attacks allowing sneaky hijacking
Trojan
Microsoft warns of a devious new RAT malware which can avoid detection with apparent ease
A concept image of someone typing on a computer. A red flashing danger sign is above the keyboard and nymbers and symbols also in glowing red surround it.
Microsoft Teams and other Windows tools hijacked to hack corporate networks
Latest in Pro
cybersecurity
What's the right type of web hosting for me?
Security padlock and circuit board to protect data
Trust in digital services around the world sees a massive drop as security worries continue
Hacker silhouette working on a laptop with North Korean flag on the background
North Korea unveils new military unit targeting AI attacks
An image of network security icons for a network encircling a digital blue earth.
US government warns agencies to make sure their backups are safe from NAKIVO security issue
Laptop computer displaying logo of WordPress, a free and open-source content management system (CMS)
This top WordPress plugin could be hiding a worrying security flaw, so be on your guard
construction
Building in the digital age: why construction’s future depends on scaling jobsite intelligence
Latest in News
Ray-Ban Meta Smart Glasses
Samsung's rumored smart specs may be launching before the end of 2025
Apple iPhone 16 Review
The latest iPhone 18 leak hints at a major chipset upgrade for all four models
Quordle on a smartphone held in a hand
Quordle hints and answers for Monday, March 24 (game #1155)
NYT Strands homescreen on a mobile phone screen, on a light blue background
NYT Strands hints and answers for Monday, March 24 (game #386)
NYT Connections homescreen on a phone, on a purple background
NYT Connections hints and answers for Monday, March 24 (game #652)
Quordle on a smartphone held in a hand
Quordle hints and answers for Sunday, March 23 (game #1154)