TEN TARGETED TECHNIQUES THAT WILL BREAK YOUR SECURITY
INSIDEA HACKER'S PLAYBOOK
Look insidefor notes on how to stop ‘em!
Targeted attacks are successful because they
are stealthy, specific and disarmingly personal. If they
do it right, advanced attackers can quietly infiltrate
a network and steal data or information at will for
months or even years.
Learn how to stop them by taking a page from
their playbook—literally. Trustwave presents a
never-before-seen copy of an advanced attacker’s
technique manual. Use it well to design security that
counters their plays perfectly.
A Playbook On ProfitingFrom Targeted AttacksBefore we tackle the finer techniques of building a money-making cyber scam, let’s talk a little about the basics of this gig, shall we?
First of all here’s what we are not trying to do. We’re not trying to blanket the internet with malicious V1agrow spam or mass SQL inject a zillion websites.
We’re narrowing our work down to a specific company or industry based on vulnerability opportunities that we scare up. The broadest we’ll get is hitting a range of companies vulnerable to one precise vulnerability — either never discovered by security researchers or just recently patched by a vendor.
Do it right and you’ll get your hands on huge caches of valuable customer data, and maybe even hit the jackpot with the target’s most important intellectual property. With that, you can blackmail people or sell to competitors — or even to nation states.
You won’t just be buying a new Ferrari. You’ll be buying a fleet of ‘em.
With a little bit of research, some crafty writing and the right technology, crooks make a good living running targeted attacks to steal corporate and government data. The more we can learn about their techniques, the better we can counter them.
As we sneak a look at each of the plays inside this bad guy instruction manual, let’s look for ways to turn this inside knowledge on its head. We’ll also offer advice on how to block each attack technique.
Know Your Adversary
of breachedorganizations
needed someone
else to tell themthey'd been
compromised
76%Play 1: Staging Your AttackLet’s get to easy money! Most times, there are five stages to a really gnarly targeted attack:
ReSeARch: Start by doing recon on the anticipated target. Dig for publicly available information and socially engineer your way to exploitable info about their IT systems
InTRuDe: use that information to find the right employee to spearphish and the right vulnerability to target with your malicious payload—once the bait’s taken you’ll have your initial toehold in the target’s network
PROPAgATe: When you pwn one machine, use its network connections to spread malware onto other machines so even if you’re detected in one place you’ve got control of other machines
InFecT: Once you get the lay of the land through your different connections, install more tools to really start to steal and aggregate data
exFILTRATe: Finally, you’ve got to get all that data out of there. Among other options, public web traffic works well
e K
48%were told by regulatory bodies
25%by law enforcement
1% by the public
2% by a third party
Step one in the fight against targeted
attacks is developing executive
awareness that these attacks really are
happening. Because these attacks are
designed precisely to avoid detection,
it’s easy to pretend you’re not being
targeted or attacked. But chances are
you may already be compromised.
Play 2: Specialize and OutsourceIt’s not what you know, it’s who you know. Put together your own little mafia with specialists who work together to keep your multi-step campaign running. Just like cave men split labor into hunting and gathering, you just have to break it up into hacking and scamming.
Build the team however you like. hire people, outsource to malware kit vendors, even work in an equal partnership. Just remember what they say about honor among thieves…
Just think: no n00bs allowed. If they can’t spell or find the caps lock, or code better than your average script kiddie can, it’s hasta la vista, baby.
wTargeted attackers are building a business around stealing from your business. Just as you’d dedicate a lot of specialized employees and vendors to solving your business problem, they’re sourcing skills necessary to crack your defenses. Here are the top five out of 10 common specialties named by the FBI:
Coders: write malware, exploits and data theft tools
Vendors: trade and sell stolen data, malware kits, footprints into compromised networks
Criminal iT Guys: Maintain criminal IT infrastructure like servers and bullet-proof ISPs
HaCkers: seek and exploit application, system and network vulnerabilities
FraudsTers: create and execute social engineering ploys like phishing and domain squatting
The FBIs List of Cyber Crime Specialties
More than a third of
data breach investigations occur within
franchise businesses
>1/3
Play 3: Scale Your AttacksOnce you get together that A-team, you’re going to milk every vulnerability dry.
Developed or bought an exploit for a new vulnerability in some sorry old company’s retail point of sale (POS) system? Maybe it's for some small-time grocery store in San Francisco, but then maybe that same exact vulnerability and system configuration is going to work in POS machines at other franchises of the same brand.
Then, son, your meal-ticket is punched. You’ll steal ten times the data but only really do the work to break into one location.
In order to stay a step ahead of the attackers, you’ve got to start thinking like them. One key way to do that is to hire penetration testers to barrage your systems with the same type of techniques the bad guys use. Doing so can help you find widespread vulnerabilities like the POS example highlighted above.
of large companies have experienced 25 or more social engineering
attacks in the past two years1
of youngworkers regularlyignore
IT policies2
48%
70%
Play 4: Play The Player, not The game There’s a good chance your target’s employees will be oh-so-helpful without even knowing it. They’ll give you information, help you upload malware on their machine and even hold the door open for you if you need to sneak into a building. These peeps should be your best friends during the first two stages of attack: research and intrusion.So work this to your advantage. here are some tips:
• Ifyouwantinformation-abouttheorgchart,locationof a data center, technology they use or whatever—call someone who would know, pretend to be from another department and just ask. nine times out of ten they’ll freely tell you out of the kindness of their hearts.
•Official-soundingemergenciesworkeverytime.Actlikeyou need help to get a ‘mission-critical’ project done or else heads will roll. Works best if you know the name of their boss’ boss.
SOURCES:
1www.securingthehuman.org/blog/2011/09/22/
justifying-your-awareness-program-with-
social-engineering-survey2www.eweek.com/c/a/Security/Younger-Employees-
Ignore-IT-Policies-Dont-Think-About-Security-
Says-Cisco-274940/
3www.securingthehuman.org/blog/2011/09/22/
justifying-your-awareness-program-with-
social-engineering-survey
of large companies said social
engineering cost them an average of $100,000 per
incident3
30%• Ifyourtargetemployeeishighupthefoodchainandtoo paranoid to take your bait, try working someone in their entourage. A lot of admins—even temps—are sitting at workstations that can access the same systems the boss’ computers are hooked into.
• Congrats—youjustgotajobinHR.Pretendtobearecruiter. In this market, people’s judgment tends to get clouded if they think there’s a new job on the horizon.
• Dependingonhowmuchyou’vegotridingonthisattack, you may even invest in a little in-person social engineering. Put on a delivery uniform, bring some flowers and see if someone will let you in the building.
P0Your employees typically play a big
role in a targeted attack and their
response to advanced attackers’
probes have the potential to make
or break your organization’s chances
of keeping the bad guys at bay. In
spite of that, industry estimates
show consistently that as few as a
quarter to a third of employees today
are ever trained on how to respond
to these social engineering ploys.
Employee training can make it much
harder for targeted attacks to ever
take shape—an adversary who can’t
gather the right information will
find it imminently more difficult to
customize an attack.
“Elite cybercriminals are tapping into search engines and social networks to help them target specific employees for social-engineering trickery at a wide range of companies, professional firms and government agencies.”
— Byron AcohidoUSA Today
Play 5: get Social For Better Recon Sometimes you don’t even need to ask employees for information—they’ll offer it up right on their Twitter feed. use social media to find out all sorts of sweet intel. here’s what you can find out by making a dummy Facebook account and tricking someone into friending it:
•Wheretheywenttohighschoolorcollege• Theirmother’smaidenname• Theirbirthday• Theirdog’sname• Factsabouttheirjob:title,promotions,boss’name,big
projects coming up etc.
All of these are valuable hints at passwords, system challenge question answers and information that’s gonna grease the skids of your targeted campaign. even if you don’t friend the person directly, you can potentially dig up info by friending one of TheIR friends. evil genius, no?Social media also rules when it comes to building a psych profile on an employee who might turn out to be the kind of tool to help you roll out that first intrusion into a target company. If you know what his or her hobbies are, what teams they root for or any other personal information, you can craft the perfect bait that will get them to visit a site you’ve infected or trick them into opening a malicious document.
of passwords contain a name in the top 100 girl and boy name lists
of passwords contain a name on the top 100 dog names list(this is the kind of info
people readily give away on their social
media feeds)
32.8%
16.7%
B42
According to recent numbers, more than half of enterprises today have seen malware infections rise as a result of employees’ use of social media. And that’s just the tip of the iceberg when it comes to how a persistent attacker will use social media to their advantage. Social media as an intelligence goldmine is an extremely effective method for hackers to start planning their plan. There’s no silver bullet, but a combination of smart social media policies, automated enforcement of these policies and a workforce well-trained in the ways of social engineers can help stem the tide of these attacks.
of organizations have IT staff
sharing passwords or access to systems or
applications4
don't change their privileged
passwords within 90 days5
or more enterprises have informal or no patch management processes in place7
42%
48%
40%
Play 6: Probe for every Weakness Why break a window when you’ve got the key for the front door? Look for user credentials at every step of the way. goal number two is to find clues about the architecture of the target company’s IT infrastructure to choose the right malware kit or custom build something that can help you pick the proverbial locks if the keys aren’t lying around. This can be anything from unencrypted password files to lists of company IP addresses to system version information of deployed assets.
There are vulnerabilities in just about every corporate network between here and the moon. If your target company doesn’t have them, chances are a third party vendor or partner company with ties into the network probably does.
Should you exploit zero-day vulnerabilities never before discovered by the security industry or vulnerabilities that already have a patch? uh, yeah. Yeah, you should. If you’re smart, they’ll both play a part in your plans.
SOURCES:
4www.liebsoft.com/Password_Security_Survey/5www.liebsoft.com/Password_Security_Survey/6www.trustwave.com/global-security-report7https://securosis.com/assets/library/main/ quant-survey-report-072709.pdf
of Apache Tomcat installations
with accessible administrative
interface have the default credentials
30%
Zero-day vulnerabilities rock. But they’re expensive to find and exploit, and known vulnerabilities can be pretty wide open. Most IT departments are too busy to plug their holes with patches.
In situations where you’re seeking very specific information—say manufacturing schematics you’re stealing for a competing company or nation state—and detection isn’t an option, then shelling out for zero-day discovery and exploitation makes sense.
But if it is all about propagating malware in a company you already know (or have a hunch about) has unpatched systems, it makes more sense to take advantage of old vulnerabilities.
The most common corporate
password is Password1,
because it just barely meets
the minimum complexity
requirements of Active
Directory for length,
capitalization and
numerical figures6
DEFENSE:
Hackers might not start with a client-side attack to gain entry into your systems. Sometimes the first step is to run a SQL injection on your website to find unencrypted password files. Given users’ propensity to reuse passwords, that early work may yield long-term access to accounts across many systems. Strong password management—including enforcement of frequent password changes—is a must to limiting damage in these instances.
On the vulnerability front, organizations have got to do a better job patching their system to limit malicious software’s mojo. Zero-day attacks are a tougher nut to crack and defense against exploitation will depend upon security mechanisms at other security layers to prevent a widespread attack from gaining much ground within the network or exfiltrating data elsewhere.
of targeted attacks initially occur through
web use
of targeted attacks initially occur through
e-mail use
enter through local devices
50%
48%
2%
Play 7: Reinvent oldWeb & email Attacks Once your crew has done its homework on a target, it’s time to cast your line and wait for a bite. Some of the most effective initial intrusion plays are fundamentally pretty old-school in nature—you’re just phishing people with fake emails, IMs or social media messages to trick them into visiting an infected site or downloading a malicious executable. now use the information you gathered to custom fit that interaction! craft a lure that’s believable and build a hook that seems so painless that no one even notices they’ve been landed.
Do it like this:
example 1: Your hackers just found a killer vulnerability in a software platform commonly used by entertainment companies. But you need control of a machine with access to exploit it. Fortunately for you, there are more than a few gossip fanatics in the entertainment community. Since most of the companies you’re targeting are based in hollywood, you use SQL injection to strategically compromise the homepage of a few local gossip sites with malicious code that downloads on visitors’ machines. To keep pesky reputation-based filters from finding your website infection, you set it up so that it will only interact with machines working within a block of IP addresses originating from Los Angeles.
Advanced attackers are increasingly using strategic web compromises to infect their targets via drive-by-download:
“The goal is not large-scale malware distribution through mass compromises.Instead the attackers place their exploit code on websites that cater
towards a particular set of visitors that they might be interested in.”
--Shadowserver
Intel About the Enemy
example 2: You’ve found some middle manager in accounting who’s got access to systems that hold tons of saleable financial and customer data. You chum it up with him on Facebook, convincing him you met him at an accounting professional group conference. Through your friend status you find out his real passion isn’t ledger books but photography. So, you task your hackers and coders to build a basic photography buff website with some hidden drive-by-download payloads. While he looks at tips on digital SLRs, your malicious payload silently loads in the background.
example 3: You’ve gotten your hands on the organizational chart of a target company and read in a company blog about a strategic new hire of John Smith in the marketing department. You create a gmail account under the name of the hR manager and use it to write an email that looks like hR blew it and gave everyone info on Smith’s salary and benefits. They open the attachment, “JohnSmithcompensation.xls,” and bang, curiosity killed the network.
k
The examples named at left and on the previous page are just the tip of the iceberg in terms of the type of creativity targeted attacks are employing to personalize their intrusion attempts. Secure web and email gateways are critical to stopping all manifestations of blended email and web attacks. As Example 1 illustrates, old web filtering technology won't always work—techniques like initiating IP address-specific malware downloads can get around defenses that depend on reputation filtering. This is where advanced technology with real-time code inspection comes into play.
of targeted malware remains
undetected by traditional
anti-virus
88%
of incident response investigations, a third
party responsible for system support, development and/or maintenance of
business environments introduced the security
deficiencies.
In 76% Play 8: Think Sideways One backdoor into a corporate network might be good, but more is always better. If you want to stay on a network for a long time, you’ve got to use that initial client-side pwnage to move sideways through the network. That way, if your first intrusion is detected and your malware package is eliminated from that machine, you’ll still keep your hands on the steering wheel elsewhere.
The secret? You’ve got to propagate with diversity. You need to use completely different types of payloads on different systems because once one type is found out, odds are they’re gonna scan the network looking for everything that looks like that sample. But if you control a bunch of endpoints with different types of malware, they’ll probably never even know they’re still compromised.
F118+82=140+60=176+24= 11.8%
41.2% of malwareuses https toexfiltrate data
29.4% uses FTP
uses sMTP
Intel about the enemy
of malwareuses https toexfiltrate data
Targeted attacks are so ingenious these days that even with the tools and practices we've suggested already, there's still a chance that some attacks will slip through. Always operate under the assumption that you've already been hacked and utilize practices and technologies that will seek out existing infections, risky security configurations and any suspect file system changes that could be a red flag of infection.
Play 9: hide in plain sight Stealth is the name of the game in these targeted attacks. Sometimes you just want to do the old smash-and-grab, where you want to get in and out of the network with as much loot as possible or with a very specific piece of information. But generally the most profitable way is to drain the database is a little at a time for a LOng time.
Put some technical noise dampeners on your intrusions. You don’t want to knock over any expensive vases while you digitally cat burgle the place, do you? every movement should be planned to avoid setting off any alarms. As you drop tools on systems to aggregate data and control backdoors, here are some tips:
• Avoidself-replicatingmalware• Hidemalwareinsystemfoldersandgetthem
to look like common processes•MakeuseofwebmailaccountstorouteSSL-encrypted
command-and-control traffic to your backdoors• Usepackerutilitiestohidemaliciousbinaries• Ifyoucan,storesomemalwarecomponents
in the cloud
Because the endgame for any targeted attack is to steal data, it only makes sense to depend on data-centric security tools to frustrate adversaries. This can be accomplished by understanding the context
of the data and detecting malicious network application traffic that is dragging the data out through application-aware, next generation firewalls. The use of encryption to hide attacks and theft of
data is on the rise. Over 25 percent of all data exfiltrated by attackers is encrypted by cyber criminals. Also critical are encryption techniques that render data useless even if it is exfiltrated.
Intel About the Enemy
Play 10: Take data Quietly So maybe you’re a l33t spearphisher, you’re wicked good taking over a network and you’ve got a nose like a bloodhound for juicy data. It all amounts to nada if you can’t get the data out of the network. Be patient! Quiet and slow exfiltration makes it easier to steal larger stores of information without setting off alarms that will shut you down midstream.
Lucky for you, most companies today don’t set up their firewalls to block outbound traffic so you have a lot of options. Public web traffic can prove to be one of the most efficient ways of slowly leaking data off the network. hTTPS traffic can have added benefit of steering clear of data leak prevention tools by hiding data under cloak of SSL.
TNetwork monitoring tools have
advanced considerably over the years to
better find common signs of attacks, but
attackers do a good job staying one step
ahead of alerting technology. One of the
most effective tools organizations have
in their struggle to discover malicious
activity is system information—but we
have to know what to look for. That
means correlating small events alerts
from across the infrastructure so that
one big alarm sounds when enough of
them happen at once. It's a specialty
of security information and event
management (SIEM) tools and the
skilled analyst that know how to use
them—both indispensible in the fight
against targeted attacks.
SECURITY IS A PROCESS,NOT A PRODUCTThat’s why, through an integrated, automated and agile approach, Trustwave delivers stronger security, continuous compliance and fewer headaches. Our broad portfolio of integrated technologies, compliance and risk services, and elite SpiderLabs research, testing and threat intelligence can help you to secure your business, centralize compliance, and gain the meaningful, actionable intelligence you need to make faster and proactive decisions. And our unique approach helps you to seamlessly achieve business continuity and compliance by swiftly implementing, monitoring, auditing and enforcing protection and control over your sensitive assets and data. Interested in how Trustwave can help? Visit www.trustwave.com.
Top Related