Home > Scam > Trojan: PowerShell/Barys – How to Remove It [Solved]
THREAT REMOVAL

Trojan: PowerShell/Barys – How to Remove It [Solved]

Trojan: PowerShell/Barys is a dangerous malware threat that abuses built-in Windows functionality to infiltrate systems and execute malicious commands. Unlike traditional malware that relies on visible executables, this threat leverages PowerShell to remain stealthy and effective. Read this article to find out what Trojan: PowerShell/Barys is, how it infects systems, what it does once inside, and how to remove it safely.

What is Trojan: PowerShell/Barys?

Trojan: PowerShell/Barys is a detection name used for a malicious script-based threat that exploits the capabilities of Windows PowerShell to execute harmful operations directly on an infected machine. PowerShell is a legitimate administrative tool built into Windows, widely used for automation and system management. However, cybercriminals often abuse it because it allows execution of commands and scripts without requiring traditional executable files.

This trojan typically operates filelessly or semi-filelessly, meaning it may not leave obvious traces such as standard executable malware files. Instead, it runs malicious commands directly in memory, making detection and analysis more difficult. Because of this, it is often associated with advanced persistent threats, loaders, and secondary payload delivery mechanisms.

Trojan: PowerShell/Barys - How to Remove It [Solved]

Trojan: PowerShell/Barys Details

Type Trojan, Malware, Backdoor
Removal Time Around 5 Minutes
Removal Tool See If Your System Has Been Affected by malware

Download

Malware Removal Tool

Key characteristics of Trojan: PowerShell/Barys

This threat stands out due to its stealth and flexibility. It is often used as part of multi-stage attacks, where it prepares the system for further compromise.

  • Abuses PowerShell to execute malicious scripts.
  • Operates with minimal or no files on disk.
  • Can bypass traditional signature-based detection.
  • Often used to download or deploy additional malware.
  • Runs commands remotely via attacker-controlled C&C servers.
  • May establish persistence through scheduled tasks or registry changes.

Because it uses legitimate system tools, Trojan: PowerShell/Barys can blend in with normal system activity, making it particularly dangerous.

How Did I Get It…

Trojan: PowerShell/Barys is typically delivered through indirect methods rather than a straightforward download. Attackers rely on user interaction, vulnerabilities, or malicious scripts to trigger PowerShell execution.

In many cases, the infection begins with phishing or social engineering tactics designed to trick the user into running a malicious command or enabling script execution.

Common infection vectors

This trojan can infiltrate systems through multiple channels, often disguised as legitimate content:

  • Malicious attachments containing scripts or embedded macros.
  • Phishing emails prompting users to enable PowerShell commands.
  • Fake software installers or cracked applications.
  • Drive-by downloads from compromised or malicious websites.
  • Exploit kits targeting outdated software vulnerabilities.
  • Malicious advertising (malvertising) leading to script execution.
  • Trojanized documents that trigger PowerShell upon opening.

Once the initial payload is executed, PowerShell is used to fetch additional components from remote servers, allowing attackers to maintain flexibility and update their attack in real time.

What Does It Do…

After gaining access to a system, Trojan: PowerShell/Barys can perform a wide range of malicious activities depending on the attacker’s objectives. It is commonly used as a loader or backdoor, enabling further compromise rather than acting as a standalone payload.

The use of PowerShell allows attackers to execute commands directly in memory, reducing the chances of detection and leaving fewer forensic artifacts.

Malicious capabilities

This trojan may perform various harmful operations on an infected machine:

  • Download and execute additional malware such as ransomware or spyware.
  • Establish remote access for attackers (backdoor functionality).
  • Steal sensitive information, including credentials and system data.
  • Modify system settings and security configurations.
  • Disable or evade antivirus and security tools.
  • Log keystrokes or monitor user activity.
  • Use the infected system as part of a botnet.

Because it can dynamically fetch new payloads, Trojan: PowerShell/Barys is highly adaptable. This means the threat level can escalate quickly depending on what additional malware is deployed.

Why it is particularly dangerous

The main danger of this threat lies in its ability to remain hidden. By operating through PowerShell, it avoids dropping obvious files and instead relies on legitimate system processes. This makes it harder for users and even some security tools to detect unusual behavior.

Additionally, fileless malware techniques reduce the amount of evidence left behind, complicating incident response and forensic analysis. This allows attackers to maintain access for longer periods without being noticed.

How to Remove It

Removing Trojan: PowerShell/Barys requires a careful approach, as the infection may not be tied to a single file. Since it can persist through scripts, scheduled tasks, or registry key modifications, a full system inspection is necessary.

Users should treat this infection as a serious security incident. Immediate action is required to prevent further compromise and data loss.

Recommended removal and recovery actions

To mitigate the impact of Trojan: PowerShell/Barys, the following actions should be considered:

  • Disconnect the affected system from the internet to block remote access.
  • Perform a full system scan using reputable anti-malware software.
  • Inspect running PowerShell processes for suspicious activity.
  • Check scheduled tasks and startup entries for unauthorized items.
  • Review Windows Event Logs for unusual script execution.
  • Reset compromised account credentials.
  • Update the operating system and all installed software.
  • Restore the system from a clean backup if necessary.

Because this threat may be part of a larger attack chain, it is important to ensure that all secondary payloads are also removed. In some cases, professional assistance may be required to fully clean the system.

What should you do?

If you suspect that Trojan: PowerShell/Barys is present on your system, act immediately. This type of threat can lead to severe consequences, including data theft, unauthorized access, and further malware infections. Do not ignore unusual system behavior or PowerShell activity. Follow the removal recommendations provided below this article and take steps to secure your system and personal data as soon as possible.

Ventsislav Krastev

Ventsislav is a cybersecurity expert at SensorsTechForum since 2015. He has been researching, covering, helping victims with the latest malware infections plus testing and reviewing software and the newest tech developments. Having graduated Marketing as well, Ventsislav also has passion for learning new shifts and innovations in cybersecurity that become game changers. After studying Value Chain Management, Network Administration and Computer Administration of System Applications, he found his true calling within the cybersecrurity industry and is a strong believer in the education of every user towards online safety and security.

More Posts - Website

Follow Me:
Twitter

  • Windows
  • Mac OS X
  • Google Chrome
  • Mozilla Firefox
  • Microsoft Edge
  • Safari
  • Internet Explorer
  • Stop Push Pop-ups

How to Remove Trojan: PowerShell/Barys from Windows.


Step 1: Scan for Trojan: PowerShell/Barys with SpyHunter Anti-Malware Tool

1.1 Click on the "Download" button to proceed to SpyHunter's download page.


It is recommended to run a scan before purchasing the full version of the software to make sure that the current version of the malware can be detected by SpyHunter. Click on the corresponding links to check SpyHunter's EULA, Privacy Policy and Threat Assessment Criteria.


1.2 After you have installed SpyHunter, wait for it to update automatically.

SpyHunter Install and Scan for Viruses Step 1


1.3 After the update process has finished, click on the 'Malware/PC Scan' tab. A new window will appear. Click on 'Start Scan'.

SpyHunter Install and Scan for Viruses Step 2


1.4 After SpyHunter has finished scanning your PC for any files of the associated threat and found them, you can try to get them removed automatically and permanently by clicking on the 'Next' button.

SpyHunter Install and Scan for Viruses Step 3

If any threats have been removed, it is highly recommended to restart your PC.


Step 2: Boot Your PC In Safe Mode

2.1 Hold Windows key + R


2.2 The "Run" Window will appear. In it, type "msconfig" and click OK.
boot your pc in safe mode step 1


2.3 Go to the "Boot" tab. There select "Safe Boot" and then click "Apply" and "OK".

boot your pc in safe mode step 2

Tip: Make sure to reverse those changes by unticking Safe Boot after that, because your system will always boot in Safe Boot from now on.


2.4 When prompted, click on "Restart" to go into Safe Mode.
boot your pc in safe mode step 3


2.5 You can recognise Safe Mode by the words written on the corners of your screen.
boot your pc in safe mode step 4


Step 3: Uninstall Trojan: PowerShell/Barys and related software from Windows

Uninstall Steps for Windows 11

1 Go to the search bar and type "Add or Remove Programs" and then click it.

Uninstall Malware from Windows 11 step 1

2 Locate the software that you want to uninstall click on the three dots and click "Uninstall" to begin the process.

Uninstall Malware from Windows 11 step 2

3 Follow the uninstall steps until the software has been effectively removed from your computer

Uninstall Malware from Windows 11 step 3

Uninstall Steps for Windows 10 and Older Versions

Here is a method in few easy steps that should be able to uninstall most programs. No matter if you are using Windows 10, 8, 7, Vista or XP, those steps will get the job done. Dragging the program or its folder to the recycle bin can be a very bad decision. If you do that, bits and pieces of the program are left behind, and that can lead to unstable work of your PC, errors with the file type associations and other unpleasant activities. The proper way to get a program off your computer is to Uninstall it. To do that:


1 Hold the Windows Logo Button and "R" on your keyboard. A Pop-up window will appear.

boot your pc in safe mode step 5


2 In the field type in "appwiz.cpl" and press ENTER.

boot your pc in safe mode step 6


3 This will open a window with all the programs installed on the PC. Select the program that you want to remove, and press "Uninstall"
boot your pc in safe mode step 7Follow the instructions above and you will successfully uninstall most programs.


Step 4: Clean Any registries, Created by Trojan: PowerShell/Barys on Your PC.

The usually targeted registries of Windows machines are the following:

  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce

You can access them by opening the Windows registry editor and deleting any values, created by Trojan: PowerShell/Barys there. This can happen by following the steps underneath:

4.1 Open the Run Window again, type "regedit" and click OK.
clean malicious registries step 1


4.2 When you open it, you can freely navigate to the Run and RunOnce keys, whose locations are shown above.

clean malicious registries step 2


4.3 You can remove the value of the virus by right-clicking on it and removing it.

clean malicious registries step 3 Tip: To find a virus-created value, you can right-click on it and click "Modify" to see which file it is set to run. If this is the virus file location, remove the value.


Video Removal Guide for Trojan: PowerShell/Barys (Windows).


Get rid of Trojan: PowerShell/Barys from Mac OS X.


Step 1: Uninstall Trojan: PowerShell/Barys and remove related files and objects

1.1 Hit the ⇧+⌘+U keys to open Utilities. Another way is to click on “Go” and then click “Utilities”, like the image below shows:
uninstall virus from mac step 1


1.2 Find Activity Monitor and double-click it:

uninstall virus from mac step 2


1.3 In the Activity Monitor look for any suspicious processes, belonging or related to Trojan: PowerShell/Barys:

uninstall virus from mac step 3

Tip: To quit a process completely, choose the “Force Quit” option.

uninstall virus from mac step 4


1.4 Click on the "Go" button again, but this time select Applications. Another way is with the ⇧+⌘+A buttons.


1.5 In the Applications menu, look for any suspicious app or an app with a name, similar or identical to Trojan: PowerShell/Barys. If you find it, right-click on the app and select “Move to Trash”.

uninstall virus from mac step 5


1.6 Select Accounts, after which click on the Login Items preference.

Your Mac will then show you a list of items that start automatically when you log in. Look for any suspicious apps identical or similar to Trojan: PowerShell/Barys. Check the app you want to stop from running automatically and then select on the Minus (“-“) icon to hide it.


1.7 Remove any left-over files that might be related to this threat manually by following the sub-steps below:

  • Go to Finder.
  • In the search bar type the name of the app that you want to remove.
  • Above the search bar change the two drop down menus to “System Files” and “Are Included” so that you can see all of the files associated with the application you want to remove. Bear in mind that some of the files may not be related to the app so be very careful which files you delete.
  • If all of the files are related, hold the ⌘+A buttons to select them and then drive them to “Trash”.

In case you cannot remove Trojan: PowerShell/Barys via Step 1 above:

In case you cannot find the virus files and objects in your Applications or other places we have shown above, you can manually look for them in the Libraries of your Mac. But before doing this, please read the disclaimer below:

Disclaimer! If you are about to tamper with Library files on Mac, be sure to know the name of the virus file, because if you delete the wrong file, it may cause irreversible damage to your MacOS. Continue on your own responsibility!

1: Click on "Go" and Then "Go to Folder" as shown underneath:

uninstall virus from mac step 6

2: Type in "/Library/LauchAgents/" and click Ok:

uninstall virus from mac step 7

3: Delete all of the virus files that have similar or the same name as Trojan: PowerShell/Barys. If you believe there is no such file, do not delete anything.

uninstall virus from mac step 8

You can repeat the same procedure with the following other Library directories:

→ ~/Library/LaunchAgents
/Library/LaunchDaemons

Tip: ~ is there on purpose, because it leads to more LaunchAgents.


Step 2: Scan for and remove Trojan: PowerShell/Barys files from your Mac

When you are facing problems on your Mac as a result of unwanted scripts and programs such as Trojan: PowerShell/Barys, the recommended way of eliminating the threat is by using an anti-malware program. SpyHunter for Mac offers advanced security features along with other modules that will improve your Mac’s security and protect it in the future.


Click the button below below to download SpyHunter for Mac and scan for Trojan: PowerShell/Barys:


Download

SpyHunter for Mac


Video Removal Guide for Trojan: PowerShell/Barys (Mac)


Remove Trojan: PowerShell/Barys from Google Chrome.


Step 1: Start Google Chrome and open the drop menu

Google Chrome removal guide step 1


Step 2: Move the cursor over "Tools" and then from the extended menu choose "Extensions"

Google Chrome removal guide step 2


Step 3: From the opened "Extensions" menu locate the unwanted extension and click on its "Remove" button.

Google Chrome removal guide step 3


Step 4: After the extension is removed, restart Google Chrome by closing it from the red "X" button at the top right corner and start it again.


Erase Trojan: PowerShell/Barys from Mozilla Firefox.


Step 1: Start Mozilla Firefox. Open the menu window:

Mozilla Firefox removal guide step 1


Step 2: Select the "Add-ons" icon from the menu.

Mozilla Firefox removal guide step 2


Step 3: Select the unwanted extension and click "Remove"

Mozilla Firefox removal guide step 3


Step 4: After the extension is removed, restart Mozilla Firefox by closing it from the red "X" button at the top right corner and start it again.


Uninstall Trojan: PowerShell/Barys from Microsoft Edge.


Step 1: Start Edge browser.


Step 2: Open the drop menu by clicking on the icon at the top right corner.

Edge Browser removal guide step 2


Step 3: From the drop menu select "Extensions".

Edge Browser removal guide step 3


Step 4: Choose the suspected malicious extension you want to remove and then click on the gear icon.

Edge Browser removal guide step 4


Step 5: Remove the malicious extension by scrolling down and then clicking on Uninstall.

Edge Browser removal guide step 5


Remove Trojan: PowerShell/Barys from Safari


Step 1: Start the Safari app.


Step 2: After hovering your mouse cursor to the top of the screen, click on the Safari text to open its drop down menu.


Step 3: From the menu, click on "Preferences".

Safari browser removal guide step 3


Step 4: After that, select the 'Extensions' Tab.

Safari browser removal guide step 4


Step 5: Click once on the extension you want to remove.


Step 6: Click 'Uninstall'.

Safari browser removal guide step 5

A pop-up window will appear asking for confirmation to uninstall the extension. Select 'Uninstall' again, and the Trojan: PowerShell/Barys will be removed.


How to Reset Safari
IMPORTANT: Before resetting Safari make sure you back up all your saved passwords within the browser in case you forget them.

Start Safari and then click on the gear leaver icon.

Click the Reset Safari button and you will reset the browser.

Eliminate Trojan: PowerShell/Barys from Internet Explorer.


Step 1: Start Internet Explorer.


Step 2: Click on the gear icon labeled 'Tools' to open the drop menu and select 'Manage Add-ons'

Internet Explorer browser removal guide step 2


Step 3: In the 'Manage Add-ons' window.
Internet Explorer browser removal guide step 3


Step 4: Select the extension you want to remove and then click 'Disable'. A pop-up window will appear to inform you that you are about to disable the selected extension, and some more add-ons might be disabled as well. Leave all the boxes checked, and click 'Disable'.

Internet Explorer browser removal guide step 4


Step 5: After the unwanted extension has been removed, restart Internet Explorer by closing it from the red 'X' button located at the top right corner and start it again.

Remove Push Notifications from Your Browsers


Turn Off Push Notifications from Google Chrome

To disable any Push Notices from Google Chrome browser, please follow the steps below:

Step 1: Go to Settings in Chrome.

Google Chrome - Disable Push Notifications Step 1

Step 2: In Settings, select “Advanced Settings”:

Google Chrome - Disable Push Notifications Step 2

Step 3: Click “Content Settings”:

Google Chrome - Disable Push Notifications Step 3

Step 4: Open “Notifications”:

Google Chrome - Disable Push Notifications Step 4

Step 5: Click the three dots and choose Block, Edit or Remove options:

Google Chrome - Disable Push Notifications Step 5

Remove Push Notifications on Firefox

Step 1: Go to Firefox Options.

Mozilla Firefox - Disable Push Notifications Step 1

Step 2: Go to “Settings”, type “notifications” in the search bar and click "Settings":

Mozilla Firefox - Disable Push Notifications Step 2

Step 3: Click “Remove” on any site you wish notifications gone and click “Save Changes”

Mozilla Firefox - Disable Push Notifications Step 3

Stop Push Notifications on Opera

Step 1: In Opera, press ALT+P to go to Settings.

Opera - Disable Push Notifications Step 1

Step 2: In Setting search, type “Content” to go to Content Settings.

Opera - Disable Push Notifications Step 2

Step 3: Open Notifications:

Opera - Disable Push Notifications Step 3

Step 4: Do the same as you did with Google Chrome (explained below):

Opera - Disable Push Notifications Step 4

Eliminate Push Notifications on Safari

Step 1: Open Safari Preferences.

Safari Browser - Disable Push Notifications Step 1

Step 2: Choose the domain from where you like push pop-ups gone and change to "Deny" from "Allow".

Trojan: PowerShell/Barys-FAQ

What Is Trojan: PowerShell/Barys?

The Trojan: PowerShell/Barys threat is adware or browser redirect virus.

It may slow your computer down significantly and display advertisements. The main idea is for your information to likely get stolen or more ads to appear on your device.

The creators of such unwanted apps work with pay-per-click schemes to get your computer to visit risky or different types of websites that may generate them funds. This is why they do not even care what types of websites show up on the ads. This makes their unwanted software indirectly risky for your OS.

What Are the Symptoms of Trojan: PowerShell/Barys?

There are several symptoms to look for when this particular threat and also unwanted apps in general are active:

Symptom #1: Your computer may become slow and have poor performance in general.

Symptom #2: You have toolbars, add-ons or extensions on your web browsers that you don't remember adding.

Symptom #3: You see all types of ads, like ad-supported search results, pop-ups and redirects to randomly appear.

Symptom #4: You see installed apps on your Mac running automatically and you do not remember installing them.

Symptom #5: You see suspicious processes running in your Task Manager.

If you see one or more of those symptoms, then security experts recommend that you check your computer for viruses.

What Types of Unwanted Programs Are There?

According to most malware researchers and cyber-security experts, the threats that can currently affect your device can be rogue antivirus software, adware, browser hijackers, clickers, fake optimizers and any forms of PUPs.

What to Do If I Have a "virus" like Trojan: PowerShell/Barys?

With few simple actions. First and foremost, it is imperative that you follow these steps:

Step 1: Find a safe computer and connect it to another network, not the one that your Mac was infected in.

Step 2: Change all of your passwords, starting from your email passwords.

Step 3: Enable two-factor authentication for protection of your important accounts.

Step 4: Call your bank to change your credit card details (secret code, etc.) if you have saved your credit card for online shopping or have done online activities with your card.

Step 5: Make sure to call your ISP (Internet provider or carrier) and ask them to change your IP address.

Step 6: Change your Wi-Fi password.

Step 7: (Optional): Make sure to scan all of the devices connected to your network for viruses and repeat these steps for them if they are affected.

Step 8: Install anti-malware software with real-time protection on every device you have.

Step 9: Try not to download software from sites you know nothing about and stay away from low-reputation websites in general.

If you follow these recommendations, your network and all devices will become significantly more secure against any threats or information invasive software and be virus free and protected in the future too.

How Does Trojan: PowerShell/Barys Work?

Once installed, Trojan: PowerShell/Barys can collect data using trackers. This data is about your web browsing habits, such as the websites you visit and the search terms you use. It is then used to target you with ads or to sell your information to third parties.

Trojan: PowerShell/Barys can also download other malicious software onto your computer, such as viruses and spyware, which can be used to steal your personal information and show risky ads, that may redirect to virus sites or scams.

Is Trojan: PowerShell/Barys Malware?

The truth is that PUPs (adware, browser hijackers) are not viruses, but may be just as dangerous since they may show you and redirect you to malware websites and scam pages.

Many security experts classify potentially unwanted programs as malware. This is because of the unwanted effects that PUPs can cause, such as displaying intrusive ads and collecting user data without the user’s knowledge or consent.

About the Trojan: PowerShell/Barys Research

The content we publish on SensorsTechForum.com, this Trojan: PowerShell/Barys how-to removal guide included, is the outcome of extensive research, hard work and our team’s devotion to help you remove the specific, adware-related problem, and restore your browser and computer system.

How did we conduct the research on Trojan: PowerShell/Barys?

Please note that our research is based on independent investigation. We are in contact with independent security researchers, thanks to which we receive daily updates on the latest malware, adware, and browser hijacker definitions.
Furthermore, the research behind the Trojan: PowerShell/Barys threat is backed with VirusTotal.
To better understand this online threat, please refer to the following articles which provide knowledgeable details.

Leave a Comment

Your email address will not be published. Required fields are marked *

This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Privacy Policy.
I Agree