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


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.
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
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
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…
Recent Posts
- The secretive X-37B space plane snapped this picture of Earth from orbit
- Beyond 100TB, here’s how Western Digital is betting on heat dot magnetic recording to reach the storage skies
- The end of an era? TSMC, Broadcom could tear apart Intel’s legendary business after 57 years by separating its foundry and chip design
- Beterbiev vs Bivol 2 LIVE: Fight stream, cheapest PPV deals, how to watch light-heavyweight title rematch
- Spotify HiFi was announced four years ago, and it’s almost here — maybe
Archives
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- September 2018
- October 2017
- December 2011
- August 2010