Alert icon Keyboard navigation enabled.
Alert icon TAB or Shift+TAB to navigate across. Down ↓ to open menu. ESC to close menu.
Alert icon Down ↓ to select section. Right → to activate. Up ↑ / Down ↓ / Tab to traverse all. ESC to exit.
BeyondTrust
Skip to content Use space or enter to skip.

What can we help you find today?

Instant Results
  • Website Results
  • Technical Documentation

Filter Options

Focus your search

Filtering by

Your recent searches:

Contact Us Chat with Sales Get Support
  • English
  • Deutsch
  • français
  • español
  • 한국어
  • português
  • Home
  • Resources
  • Blog
  • Shellshock: What you need to know current page
Link copied

Shellshock: What you need to know

Oct 20, 2017
Author:
James Maude Headshot 2024
James Maude
Field Chief Technology Officer
Blog banner default
Shellshock: What you need to know
James Maude Headshot 2024
James Maude
Field Chief Technology Officer

The InfoSec community has gone into overdrive in the last few days dealing with the 'Shellshock' bug. There is good reason for this, millions of systems around the globe are vulnerable to this bug which lets attackers run code on that system.

So what is Shellshock?

Shellshock or CVE 2014-6271 is an incredibly simple bug that requires no advanced code or sophisticated setup. In truth, it’s astonishing that it has taken so long to surface.

The bug is in Bash (Bourne Again Shell) the command interpreter used in Linux, Unix and OSX operating systems. It exploits the fact that Bash executes any code that is tagged onto the end of a function without validation. This allows attackers to disclose data and run commands on a target system.

Why is it such a big problem?

The reason the problem is so wide spread is that Bash is widely installed on a range of devices such as routers, industrial control systems and servers. The main concern at the moment is systems that are directly connected to the internet can be exploited remotely by attackers. Shodan has already shown that a huge number of critical systems and industrial controls are connected directly to the internet and are potentially vulnerable.

Internal systems also need to be patched as they present a target to attackers who manage to infiltrate the network. Many embedded devices such as VoIP phones and network printers will prove a significant challenge as manufacturers are slow to issue updates for older equipment. This was proven after Heartbleed where a significant number of devices never received an update.

What to do?

Businesses should identify and patch vulnerable systems as soon as possible as thousands of attacks are already targeting this bug. The good news is that despite the wide spread use of Bash not all systems are externally vulnerable. The most common problem areas are Apache web servers using mod_cgi, mod_cgid or Git over SSH. Although OSX does contain the bug it is safe by default unless users have configured the advanced UNIX services.

The key to success is being able to rapidly identify vulnerable systems and either patch or take them offline. External and cloud service providers are being generally proactive in warning users of issues and taking steps to resolve them. With the internet awash with these attacks it is best to take immediate action especially with business critical systems.

The technical summary

The issue is in the way in which Bash handles functions, it looks at the command and identifies the function definition using " (){ " characters. It then evaluates and executes this definition using the parse_and_execute() function. So if we add some extra commands after the function definition these should also be executed.

We can test this by running the following command.

myTest=’(){;}; echo “This is bad"’ bash -c "echo This is OK"

If we run this command on a vulnerable host it will print "This is bad" if it does not print this and just prints "This is OK" then the system is not vulnerable.

Latest Posts
  • Hooked on Identity (Part 2): Abusing OAuth Trust Boundaries in Okta
    Jun 12, 2026 Hooked on Identity (Part 2): Abusing OAuth Trust Boundaries in Okta
    Blog
    7m
  • Hooked on Identity: Abusing SAML Assertion Inline Hooks in Okta
    Jun 9, 2026 Hooked on Identity: Abusing SAML Assertion Inline Hooks in Okta
    Blog
    6m
  • Joining Project Glasswing: Securing the Privilege Backbone of the AI Era
    Jun 8, 2026 Joining Project Glasswing: Securing the Privilege Backbone of the AI Era
    Blog
    5m
  • The Most Common & Most Dangerous Types of Shadow IT
    Jun 5, 2026 The Most Common & Most Dangerous Types of Shadow IT
    Blog
    19m
  • 14 Password Management Best Practices
    May 28, 2026 14 Password Management Best Practices
    Blog
    12m
Related
  • Should Your Organization Consolidate Its Service Desk Tools?
    Jul 22, 2021 Should Your Organization Consolidate Its Service Desk Tools?
    Blog
    1m
  • Mitigate Operational Risk: Service Control in Privilege Guard 3.8
    Oct 20, 2017 Mitigate Operational Risk: Service Control in Privilege Guard 3.8
    Blog
    1m
Share this Article
  • Link
Stay up to Date
Get the latest news, ideas, and tactics from BeyondTrust. You may unsubscribe at any time.

Keep up with BeyondTrust

Customer Support Get Started
  • LinkedIn
  • X
  • Facebook
  • Instagram
  • Add BeyondTrust as a preferred source on Google
  • Privacy
  • Security
  • Manage Cookies
  • Do Not Sell My Data
  • WEEE Compliance

Copyright © 2003 — 2026 BeyondTrust Corporation. All rights reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust Corporation is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.

Prefers reduced motion setting detected. Animations will now be reduced as a result.