Don’t let overlooked obligations become incidents. Learn how.
Utility navigation bar redirect icon
Portal LoginSupportContact
Search
Close search
Huntress Logo in Teal
  • Platform Overview
    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed ITDR

    Protect your Microsoft 365 identities and email environments.

    Managed ITDR

    Protect your Microsoft 365 identities and email environments.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Integrations
    Integrations
    Support Documentation
    Support Documentation
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
  • Threats We Stop
    Phishing
    Phishing
    Business Email Compromise
    Business Email Compromise
    Ransomware
    Ransomware
    Infostealers
    Infostealers
    View Allright arrowView Allright arrow
    Industries We Serve
    Education
    Education
    Financial Services
    Financial Services
    State and Local Government
    State and Local Government
    Healthcare
    Healthcare
    Law Firms
    Law Firms
    Manufacturing
    Manufacturing
    Utilities
    Utilities
    View Allright arrowView Allright arrow
    Tailored Solutions
    MSPs
    MSPs
    Resellers
    Resellers
    SMBs
    SMBs
    Compliance
    Compliance
    What Gets Overlooked Gets Exploited

    Most days, nothing happens. But one day, something will.

    Huntress Cybersecurity
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
  • Pricing
  • Community Series
    The Product Lab

    Shape the next big thing in cybersecurity together.

    The Product Lab

    Shape the next big thing in cybersecurity together.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    Resources
    Upcoming Events
    Upcoming Events
    Ebooks
    Ebooks
    On-Demand Webinars
    On-Demand Webinars
    Videos
    Videos
    Whitepapers
    Whitepapers
    Datasheets
    Datasheets
    Cybersecurity Education
    Cybersecurity 101
    Cybersecurity 101
    Cybersecurity Guides
    Cybersecurity Guides
    Threat Library
    Threat Library
    Real Tradecraft, Real Results
    Real Tradecraft, Real Results
    2026 Cyber Threat Report
    2026 Cyber Threat Report
    The Huntress Blog
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
  • Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    The Huntress SOC

    24/7 Security Operations Center

    The Huntress SOC

    24/7 Security Operations Center

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Community

    Get in touch with the Huntress Community team

    Community

    Get in touch with the Huntress Community team

    Compare Huntress
    Bitdefender
    Bitdefender
    Blackpoint
    Blackpoint
    Breach Secure Now!
    Breach Secure Now!
    Crowdstrike
    Crowdstrike
    Datto
    Datto
    SentinelOne
    SentinelOne
    Sophos
    Sophos
    Compare Allright arrowCompare Allright arrow
  • HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    Partners
    MSPs

    Join our partner community to deliver expert-led managed security.

    MSPs

    Join our partner community to deliver expert-led managed security.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Tech Alliances

    Driving innovation through global technology Partnerships

    Tech Alliances

    Driving innovation through global technology Partnerships

    Microsoft Partnership

    A Level-Up for Your Business Security

    Microsoft Partnership

    A Level-Up for Your Business Security

  • Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Awards
    Awards
    Contact Us
    Contact Us
  • Portal Login
  • Support
  • Contact
  • Search
  • Get a Demo
  • Start for Free
Portal LoginSupportContact
Search
Close search
Get a Demo
Start for Free
HomeBlog
Using Shodan Images to Hunt Down Ransomware Groups
Published:
December 20, 2022

Using Shodan Images to Hunt Down Ransomware Groups

By:
Josh Allman
Share icon
Glitch effectGlitch effectGlitch effect

In a couple of blog posts, we’ll discuss how we leverage Shodan.io to solve some security problems. In this blog, we’re going to focus on how Shodan helps us unveil some of the infrastructure that supports ransomware actors. 

For those of you who just got to the party and don’t happen to watch Mr. Robot, Shodan is a banner-grabbing search engine that “gathers information about all devices directly connected to the internet. If a device is directly hooked up to the internet then Shodan queries it for various publicly available information. The types of devices that are indexed can vary tremendously: ranging from small desktops up to nuclear power plants and everything in between.” Shodan scans for ports and exposes vulnerabilities as well. Pretty freakin’ cool, huh?

I originally became interested in all of this because @MichalKoczwara recently shared some Cobalt Strike open directories and I asked myself what could I find?

We have previously gone into depth about all aspects of the ransomware ecosystems and the assemblage of cybercriminals in this food chain. I will show how simplistic and opportunistic some of these attacks/attackers are and where we can hunt them in the wild. Then you will be able to take this information and actively apply it to your defense.

Why Are We Able To Do This?

Ransomware gangs are not concerned with your data, SIEM, firewall or fancy EDR, and for this very reason, they will opt to take the path of least resistance that provides them with any amount of success. More often than not, you can map their techniques to MITRE ATT&CK so you can understand how attackers think and operate. 

➡️ Fun fact: ATT&CK stands for Adversarial Tactics, Techniques, and Common Knowledge👍🏼

Ransomware is known to follow some standard procedures with variations from group to campaign. We can confirm this with some information leaked from within the Conti gang: an insider affiliate shared an internal training manual among a treasure trove of information on GitHub for all to see. (We can always count on these gang members to turn on each other at some point and share with us their dastardly deeds, which we are eternally grateful for. Please, by all means, keep the dissent coming; the intel is sorely needed.)

The Hunt

I decided to choose a known binary used by bad actors to download the first-stage payload

https://lolbas-project.github.io/ 

and then take that information to Shodan.

We can take known LOLBIN binaries used by attackers such as:

```

bitsadmin

PowerShell

cmd

File transfer protocol (FTP)

Nslookup

```

then leverage the power of Shodan, as a ransomware affiliate would. In the same way that adversaries scour the internet for victims, we can turn this infrastructure back on them to look for their unsecured platforms. 

Below you can see there are 10,000 exposed instances of virtual network computing (VNC) with no authentication, and to a threat actor, that's 10,000 potential paydays. cha-CHING. However, one person cannot go through all of these alone, so this is where our threat actor turns to automation…and ultimately leads to their downfall.

Leveraging the ability of Shodan images and combining them with the work of a ransomware affiliate automating their infections, we are left with picture-perfect images of how they operate:

PowerShell:

bitsadmin:

Shodan comes in a variety of packages; these packages allow the end user access to different search filters, such as searching for a current CVE.  In the queries I used, I used the two words “bitsadmin” and “powershell” without leveraging a Shodan filter. 

Now let me quickly explain what we are looking at if it's not clear.

These are exposed instances of VNC with no authentication and anyone is able to connect and send commands. I have searched through Shodan images looking for cases where people have executed PowerShell or bitsadmin. I have done this because not every instance of open VNC running is Windows, and what happens here is a pitfall for ransomware groups where they end up spamming their payload at any poor device that will listen.

Those poor devices. 😢

GandCrab Campaign

PowerShell & Bitsadmin

GandCrab—also known as REvil—has rebranded many times and has had many of its affiliates arrested worldwide: 

  • https://krebsonsecurity.com/2019/07/is-revil-the-new-gandcrab-ransomware
  • https://www.europol.europa.eu/media-press/newsroom/news/five-affiliates-to-sodinokibi/revil-unplugged
  • https://www.crowdstrike.com/blog/the-evolution-of-revil-ransomware-and-pinchy-spider/
  • https://www.bleepingcomputer.com/news/security/fbi-seized-23m-from-affiliate-of-revil-gandcrab-ransomware-gangs/

Below I have taken an instance where the ransomware group tried to infect a pfSense router with PowerShell, bitsadmin and FTP, and not only was that not enough, but they did it again.

Color breakdown:

Red - First execution

Blue - Commands and Domains

Yellow - Second execution

Green - Attempted Malware (ransomware) execution

We can see every command begins with “r.” This is because the payloads are intended for a Windows machine; the keyboard input would be win+r to open the run dialog box and then execute the command.

  • attempt to download using cmd.exe to launch PowerShell
  • attempts to download using cmd.exe to launch bitsadmin
  • attempts to download using cmd.exe to alter the firewall and allow FTPattempts to download using cmd.exe to launch FTP

Instantly after each of the three separate attempts to download, they will attempt to execute the malware as soon as possible (this is seen highlighted in the yellow second execution section).

Quick Attribution

Let's quickly attribute the malware to the group by searching the .exe names and the IP addresses as we are looking at historical data; thankfully it's for a mass campaign.

Searching the IP leads us to here

https://urlhaus.abuse.ch/host/92.63.197.153/

which tells us they are associated with the GandCrab/REvil ransomware group. 

We can also find a sandbox report here.

Below we can see a very similar campaign but with a slightly different IP:

We can see this is associated more with coin mining, but still the GandCrab ransomware group:

This campaign has evolved into using a variety of domains now:

Unidentified "Stealth" Campaign

While doing some additional research I came across screenshots for Nslookup. I found a variety of screenshots making Nslookup requests to a range of different IPs with one similarity.

This campaign would first establish if it can connect to a VNC port, then it would make a request to an external IPv4 with a standard domain name of vncport.hacked.com (the actual port of VNC; see screenshots below).

 

Defend

How can we defend against these threats? The simplest and easiest is to have insight into your external-facing network. Huntress helps partners do this via External Recon (sorrynotsorry for the shameless plug). If you know what the attackers are looking at and understand your attack surface, you can better defend it. 

Consider if there are alternatives to exposing certain ports. If they have to be exposed for business purposes, what layers of security can you erect to frustrate the adversaries? Consider all options and get creative; attackers certainly do. Basic cyber hygiene and security controls are always recommended, but thinking like an attacker and looking at your network through this lens will always take you further.

Utilizing the info from our screenshots and mapping them to MITRE could be a fun tabletop exercise–or if you’re super nerdy, just fun to do period. We won’t judge you. 

Categories
Threat Analysis
Summarize this postClose Speech Bubble
ChatGPTClaudePerplexityGoogle AI

See Huntress in action

Our platform combines a suite of powerful managed detection and response tools for endpoints and Microsoft 365 identities, science-backed security awareness training, and the expertise of our 24/7 Security Operations Center (SOC).

Book a Demo
Share
Facebook iconTwitter X iconLinkedin iconDownload icon
Glitch effect

You Might Also Like

  • Wing FTP Server Remote Code Execution (CVE-2025-47812) Exploited in the Wild

    Huntress discovered active exploitation of Wing FTP Server RCE (CVE-2025-47812). Learn more about the injection flaw, attack timeline, forensic artifacts, and how to protect your organization.
  • 3CX VoIP Software Compromise & Supply Chain Threats

    The 3CX VoIP Desktop Application has been compromised to deliver malware via legitimate 3CX updates. Huntress has been investigating this incident and working to validate and assess the current supply chain threat to the security community.
  • Abusing Ngrok: Hackers at the End of the Tunnel

    At the end of this tunnel, we find some shady hackers using ngrok to gain remote control access to victim networks.
  • BlackCat Ransomware Affiliate TTPs

    This blog post provides a detailed look at the TTPs of a ransomware affiliate operator. In this case, the endpoint had been moved to another infrastructure (as illustrated by various command lines, and confirmed by the partner), so while Huntress SOC analysts reported the activity to the partner, no Huntress customer was impacted by the ransomware deployment.
  • Dispelling Ransomware Deployment Myths

    Huntress analyzes ransomware activity, uncovering attack patterns and key detection opportunities while dispelling ransomware myths.
  • Unraveling a Reverse Shell with Huntress Managed EDR

    Read about our journey to unravel a PowerShell reverse shell—and how our Managed EDR feature tipped us off that something wasn’t right.
  • Breaking Down Ransomware Attacks and How to Stay Ahead

    Break down how a ransomware attack works. Why ransomware is on the side, and how Huntress helps you stay protected.
  • Evicting the Adversary

    This blog shows how to catch an adversary moving from machine to machine, how to terminate this movement and how to evict the adversary from your network.

Sign Up for Huntress Updates

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.
Privacy • Terms
By submitting this form, you accept our Terms of Service & Privacy Policy
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Huntress Managed Security PlatformManaged EDRManaged EDR for macOSManaged EDR for LinuxManaged ITDRManaged SIEMManaged Security Awareness TrainingManaged ISPMManaged ESPMBook a Demo
PhishingComplianceBusiness Email CompromiseEducationFinanceHealthcareManufacturingState & Local Government
Managed Service ProvidersResellersIT & Security Teams24/7 SOCCase Studies
BlogResource CenterCybersecurity 101Upcoming EventsSupport Documentation
Our CompanyLeadershipNews & PressCareersContact Us
Huntress white logo

Protecting 215k+ customers like you with enterprise-grade protection.

Privacy PolicyCookie PolicyTerms of UseCookie Consent
Linkedin iconTwitter X iconYouTube iconInstagram icon
© 2025 Huntress All Rights Reserved.

Join the Hunt

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.

By submitting this form, you accept our Terms of Service & Privacy Policy