SlideShare a Scribd company logo
The bash vulnerability  practical tips to secure your environment
@AlienVault 
About AlienVault 
AlienVault has unified the security products, intelligence and 
community essential for mid-sized businesses to defend against 
today’s modern threats
@AlienVault 
Agenda 
What is the bash vulnerability? 
Practical tips to minimize your exposure to attack 
Insights on how attackers are exploiting this vulnerability 
(with Jaime Blasco, AlienVault Labs Director) 
How AlienVault USM can detect the bash vulnerability, 
and alert you of active attacks (Demo with victor Obando, 
systems engineer)
Allows an attacker to inject malicious code inline with a shell command 
following the definition of an environmental variable 
curl -H "User-Agent: () { :; }; /bin/eject" http://example.com/ 
@AlienVault 
What Is The Bash Vulnerability? 
Prior to fixing this vulnerability, variables starting with “() { :; };” were treated 
as executable commands rather than text strings. 
In the case of a http header (something an attacker controls), this 
vulnerability can be used to compromise the variable definition in the web 
server itself 
HTTP_USER_AGENT=() { :; }; /bin/eject
@AlienVault 
Am I Vulnerable? 
Do you have externally facing *nix (Unix, Linux, Mac OS, 
etc) servers that utilize the bash shell? 
Do you have web applications making calls to the bash shell 
on these servers with elevated privileges? 
Have you neglected to apply your OS vendor’s patch that 
addresses this vulnerability? 
If the answer is YES to any of the questions above, you could 
be vulnerable…
Non-Server Vulnerabilities 
Devices with embedded Linux could potentially be running 
unpatched bash that is either not supported (patch will not be 
released) or near impossible to upgrade. 
@AlienVault 
• Routers 
• Switches 
• Firewalls 
• Other Network Appliances
@AlienVault 
How To Test If You Are Vulnerable 
In the bash shell, enter the following command: 
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
@AlienVault 
If Your Test Returns This… 
…Then You’re Not Vulnerable
@AlienVault 
However, If You See This… 
…Then You Might Be In Trouble
How Do I Defend Myself? 
Patch your servers 
• Really, this is the easiest, most effective, and the only real way to “fix” this 
@AlienVault 
vulnerability 
• Supported Ubuntu/Debian (apt-get) 
- sudo apt-get update && sudo apt-get install --only-upgrade bash 
• Supported CentOS / RedHat / Fedora 
- sudo yum update bash 
• Apple OS X 
- Patch update available from the Apple support site. 
• For unsupported operating systems, you will have to update to a supported 
version first, then apply the patch.
@AlienVault 
How Do I Defend Myself? 
Sanitize your web application’s inputs 
• Related to defense against Cross-Site Scripting and SQL 
injection attacks, make sure that inputs are validated and 
sanitized. 
Disable any calls to bash under elevated privileges 
• Obviously disable any CGIs that make call to the shell 
Use another shell?? 
• Probably not the best idea, especially since commands in bash 
may not translate to other shells
@AlienVault 
Attack Vectors 
Attackers are exploiting the vulnerability 
using the following protocols: 
- HTTP Headers 
- DHCP 
- SIP 
- Mail (Ex: Qmail, Postfix) 
- OpenVPN 
- FTP (Ex: Pure-FTPd) 
- DNS
@AlienVault 
Post exploitation 
Once the attackers find a way to exploit the vulnerability 
they download and execute a payload, example: 
- The malware is a Linux ELF executable that makes the infected system join a 
bonet. It has the following capabilities: 
- PING 
- GETLOCALIP 
- SCANNER 
- HOLD 
- JUNK (DoS Flood) 
- UDP (DoS Flood) 
- TCP (DoS Flood) 
- KILLATTK
@AlienVault 
Spotting Shellshock in USM 
Malicious Sources added to OTX 
Threat intelligence 
• Multiple IDS Signatures Including: 
2019231 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in URI 
2019232 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in Headers 
2019233 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in ClientBody 
2019234 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in Client Body 2 
2019236 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in HTTP Version Number 
2019237 - ET EXPLOIT Possible CVE-2014-6271 exploit attempt via malicious DHCP ACK - option 15 
2019238 - ET EXPLOIT Possible CVE-2014-6271 exploit attempt via malicious DHCP ACK - option 67 
Correlation Directives to Detect and Alarm: 
Exploitation & Installation, Service Exploit, Bash - CVE-2014-6271 
Reconnaissance & Probing, Service Exploit, Bash - CVE-2014-6271
Asset Discovery 
• Active Network Scanning 
• Passive Network Scanning 
• Asset Inventory 
• Host-based Software 
Inventory 
Vulnerability Assessment 
• Network Vulnerability Testing 
• Remediation Verification 
Threat Detection 
• Network IDS 
• Host IDS 
• Wireless IDS 
• File Integrity Monitoring 
Behavioral Monitoring 
• Log Collection 
• Netflow Analysis 
• Service Availability Monitoring 
Security Intelligence 
• SIEM Event Correlation 
• Incident Response 
@AlienVault
@AlienVault 
DEMO TIME!
More Questions? 
Email Hello@alienvault.com 
NOW FOR SOME Q&A… 
Test Drive AlienVault USM 
Download a Free 30-Day Trial 
http://www.alienvault.com/free-trial 
Try our Product Sandbox 
http://www.alienvault.com/live-demo-site

More Related Content

PDF
Shellshock bug
PDF
Getting root with benign app store apps
PPTX
[Wroclaw #7] Security test automation
PDF
Getting root with benign app store apps vsecurityfest
PDF
Open Source Incidents
PDF
[Wroclaw #7] Why So Serial?
PPTX
Apache Struts2 CVE-2017-5638
PDF
Continuous Security: From tins to containers - now what!
Shellshock bug
Getting root with benign app store apps
[Wroclaw #7] Security test automation
Getting root with benign app store apps vsecurityfest
Open Source Incidents
[Wroclaw #7] Why So Serial?
Apache Struts2 CVE-2017-5638
Continuous Security: From tins to containers - now what!

What's hot (8)

PPTX
Detecting virtual machine co residency in cloud computing with active traffic...
PDF
CyberSEED: Virtual Machine Introspection to Detect and Protect
PDF
Exploiting Directory Permissions on macOS
PPT
[HackInTheBox] Breaking virtualization by any means
PDF
CSW2017 Weston miller csw17_mitigating_native_remote_code_execution
PDF
How to convince a malware to avoid us
PDF
PDF
44CON London 2015 - Hunting Asynchronous Vulnerabilities
Detecting virtual machine co residency in cloud computing with active traffic...
CyberSEED: Virtual Machine Introspection to Detect and Protect
Exploiting Directory Permissions on macOS
[HackInTheBox] Breaking virtualization by any means
CSW2017 Weston miller csw17_mitigating_native_remote_code_execution
How to convince a malware to avoid us
44CON London 2015 - Hunting Asynchronous Vulnerabilities
Ad

Similar to The bash vulnerability practical tips to secure your environment (20)

PDF
Shellshock - A Software Bug
PDF
DEF CON 27 - workshop ANTHONY ROSE - introduction to amsi bypasses and sandbo...
PDF
Inside the Matrix,How to Build Transparent Sandbox for Malware Analysis
PPTX
The Veil-Framework
PDF
Breaking Antivirus Software - Joxean Koret (SYSCAN 2014)
PDF
Breaking av software
PDF
Breaking av software
PDF
Breaking Antivirus Software
PPTX
Testing Terraform
PPT
AntiRE en Masse
PDF
Secure Programming And Common Errors[Michele Orru Dec 2008]
PPTX
Node.js kubernetes-cloud all the buzzwords coming together with microsoft azure
PDF
Commix Detecting And Exploiting.pdf
PPTX
BH Arsenal '14 TurboTalk: The Veil-framework
PPTX
July Patch Tuesday 2019
PDF
Ceh v5 module 11 hacking webservers
PDF
PVS-Studio Static Analyzer as a Tool for Protection against Zero-Day Vulnerab...
PPTX
Travis CI - PHP
PDF
Serverless security: defense against the dark arts
PPT
Zerovm backgroud
Shellshock - A Software Bug
DEF CON 27 - workshop ANTHONY ROSE - introduction to amsi bypasses and sandbo...
Inside the Matrix,How to Build Transparent Sandbox for Malware Analysis
The Veil-Framework
Breaking Antivirus Software - Joxean Koret (SYSCAN 2014)
Breaking av software
Breaking av software
Breaking Antivirus Software
Testing Terraform
AntiRE en Masse
Secure Programming And Common Errors[Michele Orru Dec 2008]
Node.js kubernetes-cloud all the buzzwords coming together with microsoft azure
Commix Detecting And Exploiting.pdf
BH Arsenal '14 TurboTalk: The Veil-framework
July Patch Tuesday 2019
Ceh v5 module 11 hacking webservers
PVS-Studio Static Analyzer as a Tool for Protection against Zero-Day Vulnerab...
Travis CI - PHP
Serverless security: defense against the dark arts
Zerovm backgroud
Ad

More from AlienVault (20)

PPTX
Meltdown and Spectre - How to Detect the Vulnerabilities and Exploits
PDF
Malware Invaders - Is Your OS at Risk?
PPTX
How to Solve Your Top IT Security Reporting Challenges with AlienVault
PPTX
Simplify PCI DSS Compliance with AlienVault USM
PDF
SIEM for Beginners: Everything You Wanted to Know About Log Management but We...
PDF
Insider Threat Detection Recommendations
PPTX
Alienvault threat alerts in spiceworks
PDF
Open Source IDS Tools: A Beginner's Guide
PPTX
Malware detection how to spot infections early with alien vault usm
PDF
Security operations center 5 security controls
PDF
PCI DSS Implementation: A Five Step Guide
PPTX
Improve threat detection with hids and alien vault usm
PDF
The State of Incident Response - INFOGRAPHIC
PPTX
Incident response live demo slides final
PPTX
Improve Situational Awareness for Federal Government with AlienVault USM
PPTX
Improve Security Visibility with AlienVault USM Correlation Directives
PPTX
How Malware Works
PPTX
New USM v5.0 - Get Complete Security Visibility Faster & Easier Than Ever
PPTX
New OSSIM v5.0 - Get Security Visibility Faster & Easier Than Ever
PPTX
AWS Security Best Practices for Effective Threat Detection & Response
Meltdown and Spectre - How to Detect the Vulnerabilities and Exploits
Malware Invaders - Is Your OS at Risk?
How to Solve Your Top IT Security Reporting Challenges with AlienVault
Simplify PCI DSS Compliance with AlienVault USM
SIEM for Beginners: Everything You Wanted to Know About Log Management but We...
Insider Threat Detection Recommendations
Alienvault threat alerts in spiceworks
Open Source IDS Tools: A Beginner's Guide
Malware detection how to spot infections early with alien vault usm
Security operations center 5 security controls
PCI DSS Implementation: A Five Step Guide
Improve threat detection with hids and alien vault usm
The State of Incident Response - INFOGRAPHIC
Incident response live demo slides final
Improve Situational Awareness for Federal Government with AlienVault USM
Improve Security Visibility with AlienVault USM Correlation Directives
How Malware Works
New USM v5.0 - Get Complete Security Visibility Faster & Easier Than Ever
New OSSIM v5.0 - Get Security Visibility Faster & Easier Than Ever
AWS Security Best Practices for Effective Threat Detection & Response

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation theory and applications.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
Machine Learning_overview_presentation.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
“AI and Expert System Decision Support & Business Intelligence Systems”
Network Security Unit 5.pdf for BCA BBA.
Building Integrated photovoltaic BIPV_UPV.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Unlocking AI with Model Context Protocol (MCP)
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Approach and Philosophy of On baking technology
Encapsulation theory and applications.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
NewMind AI Weekly Chronicles - August'25-Week II
Machine Learning_overview_presentation.pptx
Big Data Technologies - Introduction.pptx
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf

The bash vulnerability practical tips to secure your environment

  • 2. @AlienVault About AlienVault AlienVault has unified the security products, intelligence and community essential for mid-sized businesses to defend against today’s modern threats
  • 3. @AlienVault Agenda What is the bash vulnerability? Practical tips to minimize your exposure to attack Insights on how attackers are exploiting this vulnerability (with Jaime Blasco, AlienVault Labs Director) How AlienVault USM can detect the bash vulnerability, and alert you of active attacks (Demo with victor Obando, systems engineer)
  • 4. Allows an attacker to inject malicious code inline with a shell command following the definition of an environmental variable curl -H "User-Agent: () { :; }; /bin/eject" http://example.com/ @AlienVault What Is The Bash Vulnerability? Prior to fixing this vulnerability, variables starting with “() { :; };” were treated as executable commands rather than text strings. In the case of a http header (something an attacker controls), this vulnerability can be used to compromise the variable definition in the web server itself HTTP_USER_AGENT=() { :; }; /bin/eject
  • 5. @AlienVault Am I Vulnerable? Do you have externally facing *nix (Unix, Linux, Mac OS, etc) servers that utilize the bash shell? Do you have web applications making calls to the bash shell on these servers with elevated privileges? Have you neglected to apply your OS vendor’s patch that addresses this vulnerability? If the answer is YES to any of the questions above, you could be vulnerable…
  • 6. Non-Server Vulnerabilities Devices with embedded Linux could potentially be running unpatched bash that is either not supported (patch will not be released) or near impossible to upgrade. @AlienVault • Routers • Switches • Firewalls • Other Network Appliances
  • 7. @AlienVault How To Test If You Are Vulnerable In the bash shell, enter the following command: env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
  • 8. @AlienVault If Your Test Returns This… …Then You’re Not Vulnerable
  • 9. @AlienVault However, If You See This… …Then You Might Be In Trouble
  • 10. How Do I Defend Myself? Patch your servers • Really, this is the easiest, most effective, and the only real way to “fix” this @AlienVault vulnerability • Supported Ubuntu/Debian (apt-get) - sudo apt-get update && sudo apt-get install --only-upgrade bash • Supported CentOS / RedHat / Fedora - sudo yum update bash • Apple OS X - Patch update available from the Apple support site. • For unsupported operating systems, you will have to update to a supported version first, then apply the patch.
  • 11. @AlienVault How Do I Defend Myself? Sanitize your web application’s inputs • Related to defense against Cross-Site Scripting and SQL injection attacks, make sure that inputs are validated and sanitized. Disable any calls to bash under elevated privileges • Obviously disable any CGIs that make call to the shell Use another shell?? • Probably not the best idea, especially since commands in bash may not translate to other shells
  • 12. @AlienVault Attack Vectors Attackers are exploiting the vulnerability using the following protocols: - HTTP Headers - DHCP - SIP - Mail (Ex: Qmail, Postfix) - OpenVPN - FTP (Ex: Pure-FTPd) - DNS
  • 13. @AlienVault Post exploitation Once the attackers find a way to exploit the vulnerability they download and execute a payload, example: - The malware is a Linux ELF executable that makes the infected system join a bonet. It has the following capabilities: - PING - GETLOCALIP - SCANNER - HOLD - JUNK (DoS Flood) - UDP (DoS Flood) - TCP (DoS Flood) - KILLATTK
  • 14. @AlienVault Spotting Shellshock in USM Malicious Sources added to OTX Threat intelligence • Multiple IDS Signatures Including: 2019231 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in URI 2019232 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in Headers 2019233 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in ClientBody 2019234 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in Client Body 2 2019236 - ET WEB_SERVER Possible CVE-2014-6271 Attempt in HTTP Version Number 2019237 - ET EXPLOIT Possible CVE-2014-6271 exploit attempt via malicious DHCP ACK - option 15 2019238 - ET EXPLOIT Possible CVE-2014-6271 exploit attempt via malicious DHCP ACK - option 67 Correlation Directives to Detect and Alarm: Exploitation & Installation, Service Exploit, Bash - CVE-2014-6271 Reconnaissance & Probing, Service Exploit, Bash - CVE-2014-6271
  • 15. Asset Discovery • Active Network Scanning • Passive Network Scanning • Asset Inventory • Host-based Software Inventory Vulnerability Assessment • Network Vulnerability Testing • Remediation Verification Threat Detection • Network IDS • Host IDS • Wireless IDS • File Integrity Monitoring Behavioral Monitoring • Log Collection • Netflow Analysis • Service Availability Monitoring Security Intelligence • SIEM Event Correlation • Incident Response @AlienVault
  • 17. More Questions? Email Hello@alienvault.com NOW FOR SOME Q&A… Test Drive AlienVault USM Download a Free 30-Day Trial http://www.alienvault.com/free-trial Try our Product Sandbox http://www.alienvault.com/live-demo-site

Editor's Notes

  • #2: Welcome, thanks for joining – My name is Garrett Gross, Sr Tech PMM @ AlienVault. We wanted to take some time to talk about the recent bash shell exploit (known as “shellshock”). Understandably, there is a lot of confusion surrounding the shellshock vulnerability, how attackers are exploiting this vulnerability, and how to protect yourself against it. But first – I’d like to tell you a bit about AlienVault.
  • #3: AlienVault is a security software company based out of San Mateo, CA with offices here in Austin, TX; Granada and Madrid, Spain; and Cork, Ireland. We offer a Unified Security Management platform with the detection tools and supporting threat intelligence that you need to best defend against today’s attackers.
  • #5: Afterwards, turn over to Jaime