Keynote - Looking Forward - Finding the right balance for INFOSEC
David Kennedy (TrustedSec)
BruCON 0x07 · Day 2
Overview
In this insightful keynote address at BruCON, David Kennedy, founder of TrustedSec and creator of the Social Engineer Toolkit (SET), delves into the evolving landscape of information security, challenging prevailing industry narratives and offering a stark look at the realities of modern cyberattacks. Kennedy argues that despite significant investment and technological advancements, the industry often misdirects its efforts, focusing on sophisticated, "zero-day" level threats while neglecting fundamental, easily exploitable vulnerabilities. He emphasizes that the vast majority of successful breaches stem from basic security hygiene failures, user error, and misconfigurations, rather than highly advanced, nation-state-level attacks.

Key moments
- 0:00 Speaker intro and infosec industry overview
- 7:00 Most breaches result from trivial security flaws
- 13:00 SET Demo: PowerShell injection for diskless exploitation
- 23:00 The outdated 'castle' security model vs. modern threats
- 26:00 Why throwing money at security tech often fails
- 31:00 Simple ways to bypass advanced sandboxing defenses
- 48:00 Key defensive strategies that stop real-world attackers
Keynote - Looking Forward - Finding the right balance for INFOSEC
Speakers: David Kennedy (TrustedSec)
Conference: BruCON
YouTube: https://www.youtube.com/watch?v=lqsN2T4RoJw
Overview
In this insightful keynote address at BruCON, David Kennedy, founder of TrustedSec and creator of the Social Engineer Toolkit (SET), delves into the evolving landscape of information security, challenging prevailing industry narratives and offering a stark look at the realities of modern cyberattacks. Kennedy argues that despite significant investment and technological advancements, the industry often misdirects its efforts, focusing on sophisticated, "zero-day" level threats while neglecting fundamental, easily exploitable vulnerabilities. He emphasizes that the vast majority of successful breaches stem from basic security hygiene failures, user error, and misconfigurations, rather than highly advanced, nation-state-level attacks.
The talk serves as a critical examination of the current state of cybersecurity, advocating for a paradigm shift from an exclusive reliance on automated tools and product acquisitions to a greater emphasis on skilled human talent, foundational security practices, and robust detection capabilities. Kennedy, drawing from his extensive experience as a penetration tester and red teamer, illustrates how common attack vectors, particularly social engineering, remain alarmingly effective. He also introduces updates to his widely used Social Engineer Toolkit, showcasing practical exploitation techniques against modern operating systems like Windows 10, underscoring the persistent efficacy of these methods. This keynote is essential for security professionals seeking to align their defensive strategies with the actual threats they face, rather than chasing hyped, often exaggerated, attack scenarios.
Background
▶ Watch: Speaker intro and infosec industry overview (0:00)
The information security industry has undergone a dramatic transformation since its nascent days. David Kennedy reminisces about Def Con in 1999, a small, tight-knit community of around 200 individuals, a stark contrast to the 25,000 attendees seen in later years. This growth reflects the industry's rapid expansion, driven by increasing interconnectedness – the Internet of Things (IoT), cloud adoption, and mobile devices – which has fundamentally altered the security perimeter. Traditionally, security operated under a "castle mentality," focusing on building formidable external defenses with firewalls and strong perimeters to keep attackers out. However, this model has become obsolete in an era where BYOD (Bring Your Own Device), cloud services, and a pervasive network of connected devices effectively dismantle the traditional castle walls, leaving the drawbridge permanently down.
Despite this evolution, a significant disconnect persists between the perceived sophistication of cyber threats and the reality of how most breaches occur. Media portrayals, like the show Mr. Robot, often depict hackers as requiring deep research and skill to exploit specific vulnerabilities, which Kennedy acknowledges is true for advanced attacks. Yet, he contends that 99% of real-world breaches are far less complex. He points to incidents like the Sony breach, where the malware was described as amateurish, relying on basic techniques and commercial tools rather than cutting-edge exploits. The industry's focus on Advanced Persistent Threats (APTs) and zero-day prevention tools often leads organizations to overlook basic security flaws: default passwords, unpatched systems, and susceptible end-users. This creates a dangerous "major gap" where companies invest heavily in high-end solutions while leaving their "front door open" to trivial attacks. The problem is compounded by a severe talent shortage within the infosec field, forcing companies to either over-rely on consultants or purchase more technology in a desperate attempt to compensate for a lack of skilled personnel. This often results in expensive security products sitting unused or misconfigured, failing to deliver the promised protection.
Key Findings
▶ Watch: SET Demo: PowerShell injection for diskless exploitation (13:00)
David Kennedy's talk highlights several critical findings regarding the state of information security, challenging conventional wisdom and pointing to systemic issues:
- The "Stupid Simple" Nature of Most Breaches: Kennedy emphatically states that 99% of successful breaches he encounters as a penetration tester result from basic, easily preventable flaws. This includes default passwords, missing patches, or social engineering where users click malicious links. He rarely needs to burn a zero-day exploit, even against organizations with seemingly good security practices. This finding directly contradicts the media-driven narrative of highly sophisticated, elusive attackers.
- Over-reliance on Technology Over Talent: Organizations are throwing "millions and millions of dollars" at security products, believing technology alone can solve decades of neglect and architectural flaws. However, without sufficient skilled personnel to implement, configure, and manage these tools effectively, they often sit idly or are deployed poorly (e.g., importing 20 years of bad firewall rules into a new Palo Alto Next-Gen Firewall). This leads to a false sense of security and continued vulnerability.
- End-Users as the Easiest Attack Vector: Despite technological advancements, the human element remains the most vulnerable link. Kennedy demonstrates how a mere 15-30 minutes of research into an individual can enable a highly effective social engineering attack. The entire security premise of many organizations can be undone by a single user clicking a malicious link, leading to a complete compromise that often goes undetected.
- Bypassability of "Next-Gen" Security Tools: Kennedy reveals practical methods to circumvent advanced security solutions like sandboxes and application whitelisting. He shows how sandboxes are often predictable, allowing malware to detect a virtualized environment (e.g., by checking for less than two CPU cores) and simply exit, only to activate in a real user environment. Similarly, PowerShell injection and using code-signing certificates can bypass application whitelisting and traditional antivirus by not dropping binaries to disk or appearing legitimate.
- Automation is Not a Panacea: While automation (e.g., vulnerability scanners, source code analyzers) has its place in managing low-hanging fruit and basic hygiene, it cannot replace human skill and research in identifying complex vulnerabilities or adapting to novel attack methods. Kennedy warns against the industry's push to automate human aspects of security, suggesting it could lead to a "John Henry" scenario where humans are pushed to their limits trying to keep up.
- The "Puppy Mill" Effect in Security Services: The lack of skilled talent has led to the rise of commoditized security services, or "puppy mills," where junior staff are billed as senior experts to perform basic, often ineffective, vulnerability scans masquerading as penetration tests. This undermines the quality of security assessments and contributes to the ongoing breach epidemic.
- Positive Industry Change is Possible: Kennedy cites PCI DSS 3.0 as a positive example of how industry standards can evolve to mandate more rigorous, legitimate penetration testing, moving away from vague requirements that allowed for low-quality assessments. This demonstrates that collective efforts can drive meaningful improvements in security practices.
Technical Deep Dive
▶ Watch: The outdated 'castle' security model vs. modern threats (23:00)
David Kennedy’s talk transitions from broad industry observations to specific, practical attack techniques, primarily leveraging his Social Engineer Toolkit (SET) and PowerShell injection. He highlights the effectiveness of these methods against modern systems, including Windows 10, and explains how they bypass common defensive measures.
The core of his demonstration revolves around PowerShell injection, a technique Kennedy favors because it allows attackers to inject shellcode directly into memory without ever touching the disk. This is a crucial advantage, as it circumvents many traditional security controls like antivirus and application whitelisting solutions (e.g., Bit9), which primarily focus on detecting and blocking malicious binaries written to disk. With the end-of-life of Windows XP, he notes that Windows environments offer reliable PowerShell exploitation methods.
Kennedy details the process:
- Shellcode Generation: SET generates the necessary shellcode for the desired payload (e.g., a Meterpreter shell from Metasploit).
- PowerShell Wrapper: This shellcode is then wrapped within a PowerShell script. To evade detection, the script is typically Unicode and Base64 encoded, making it appear as a benign string rather than executable code.
- Memory Injection: When executed, the PowerShell script injects the raw shellcode directly into a process's memory. This "fileless" approach makes forensic analysis harder and bypasses disk-based detection mechanisms.
- 64-bit/32-bit Compatibility: A clever feature in the new SET version automatically detects if the target system is 64-bit or 32-bit. If 64-bit, it downgrades the target process to a 32-bit process before injecting native 32-bit shellcode. This ensures broad compatibility without needing separate payloads for different architectures, simplifying the attacker's toolkit.
He specifically demonstrates the HTA (HTML Application) attack method (option 8 in SET's website attack vectors). This method leverages .hta files, which are executable files that can embed HTML, CSS, and scripting languages like JavaScript or VBScript. When a user opens an HTA file (often disguised as a legitimate document or application), it can execute arbitrary code, including the PowerShell injection command, directly on the system. This allows for reliable remote code execution with minimal user interaction beyond the initial click.
Another Metasploit-specific technique Kennedy mentions for evasion is setting enable_stage_encoding true on the reverse HTTPS handler. This mangles the second-stage payload (the larger, more functional part of the Meterpreter shell) using encoding platforms like Shikata Ga Nai over the wire. This makes it much harder for web content filtering software or next-gen firewalls (like Palo Alto) to detect and block the binary download, even though the encoding itself might be picked up by traditional antivirus if it were on disk.
Beyond direct exploitation, Kennedy also touches on advanced evasion techniques against sophisticated security tools:
- Sandbox Evasion: He describes a simple yet highly effective trick: checking the number of CPU cores. Most sandboxes used by security products (e.g., for email or web content analysis) are optimized for speed and run with minimal resources, often less than two CPU cores. Malware can simply include a check:
if CPU_cores < 2 then exit. This makes the malware appear benign in the sandbox, only to activate in a real user environment with more resources. - Application Whitelisting Bypass: Since his preferred method doesn't involve dropping binaries, application whitelisting is largely bypassed. For scenarios where a binary might be used, obtaining a code-signing certificate (which costs around $300) can dramatically increase the reputation of the executable, allowing it to bypass many whitelisting and reputation-based checks.
Finally, Kennedy introduces the Pen Testers Framework (PTF), a tool he developed for managing and updating offensive security tools. PTF aims to solve the problem of keeping tools like Metasploit and SET up-to-date, as package distributions often lag by weeks or months. PTF is a modular framework, similar to Kali Linux in purpose but focused on ease of updates and customizability. It supports various Linux distributions (Ubuntu, Fedora, Debian, Mint) and allows users to easily add new tools via simple Python modules. It automatically pulls the latest versions from Git/SVN repositories, handles dependencies, and even runs post-installation commands, ensuring a pen tester's toolkit is always current and ready.
Demo / Proof of Concept
▶ Watch: Simple ways to bypass advanced sandboxing defenses (31:00)
David Kennedy provides a live demonstration of his updated Social Engineer Toolkit (SET), showcasing its capabilities against Windows 10, which he developed specifically on the airplane en route to BruCON. The core of the demo illustrates how a highly effective social engineering attack can compromise an end-user and gain a remote shell, bypassing modern operating system protections.
The demonstration begins by highlighting the attacker's methodology:
- Target Selection: Instead of broad, statistical phishing campaigns, Kennedy focuses on researching one or two specific individuals within an organization for 30-45 minutes using publicly available information (e.g., LinkedIn, social media). This allows for the creation of a highly personalized and believable pretext.
- Attack Vector: He opts for a website attack vector (option 2 in SET), specifically the new HTA (HTML Application) attack method (option 8). This method is chosen for its reliability and ability to execute code directly.
- Website Cloning and Payload Injection: SET is used to clone a legitimate-looking website. Into this cloned site, SET injects a malicious HTA file, which, when triggered, executes the PowerShell injection payload.
- Metasploit Listener Setup: Kennedy configures a Metasploit handler for a reverse HTTPS Meterpreter shell. He also mentions the importance of
set enable_stage_encoding trueto obfuscate the second-stage payload download, helping bypass network filtering. - User Interaction: The user receives a crafted email (implied, not shown) directing them to the malicious, cloned website. When the user visits the site, the HTA payload attempts to execute. On Windows 10, this typically prompts the user with a security warning asking them to "run" or "open" a file. Kennedy explains that a well-crafted pretext would instruct the user to click "run" to "verify their computer" or for "company policy," leveraging human trust and obedience.
- Compromise: Once the user clicks "run," the PowerShell injection executes. The script automatically detects the system's architecture (32-bit or 64-bit), downgrades the process to 32-bit if necessary, and injects the 32-bit Meterpreter shellcode directly into memory.
- Remote Shell: Within seconds, a Meterpreter shell is obtained on the attacker's Metasploit console, demonstrating full access to the compromised Windows 10 machine. Crucially, as Kennedy emphasizes, "you don't have anything touching disk," making detection and forensic analysis significantly harder.
Kennedy also briefly mentions the older Java applet method as a still-successful alternative, often used with a code-signing certificate for added legitimacy. He highlights that in a real-world scenario, attackers often build in multiple redundancies and fallbacks (e.g., Java applet first, then HTA, then credential harvesting) to ensure compromise. The demo powerfully reinforces Kennedy's central argument: that despite the sophistication of modern operating systems, the human element, combined with clever exploitation techniques, remains the most vulnerable point in an organization's security posture.
Defensive Implications
▶ Watch: Key defensive strategies that stop real-world attackers (48:00)
David Kennedy's insights offer a clear roadmap for defenders to move beyond a reactive, product-centric approach and build more resilient security postures. His observations underscore that effective defense hinges on addressing fundamental weaknesses rather than solely focusing on advanced threats.
- Prioritize Basic Security Hygiene: The overwhelming majority of breaches exploit basic vulnerabilities. Defenders must rigorously implement and enforce strong patch management, ensure strong, unique passwords across all systems, and eliminate default credentials. These "low-hanging fruit" are consistently the easiest entry points for attackers.
- Strengthen End-User Security: Since social engineering remains the easiest and most effective attack vector, robust security awareness training is paramount. This training should go beyond generic warnings, focusing on specific attack techniques like phishing, pretexting, and understanding how malicious websites and files can be disguised. More importantly, technical controls are needed to reduce the impact of user error.
- Implement Robust Endpoint Controls:
- Randomize/Disable Local Admin Accounts: Kennedy stresses the importance of randomizing passwords for local administrator accounts on workstations or, ideally, disabling them entirely. This prevents attackers from easily moving laterally across the network once one machine is compromised. He notes a common pitfall: simply setting a Group Policy to disable local admins may not work unless another admin account is present.
- Restrict PowerShell: For typical end-users, PowerShell is rarely a necessary tool. Defenders should use tools like AppLocker to disallow PowerShell execution for non-administrative users. This single control can neutralize "90% of [Kennedy's] exploitation techniques."
- Prevent Execution from Temp Directories: AppLocker should also be configured to disallow executables from running out of common temporary directories (e.g.,
temp,all users). Many malware strains write to these locations. - Deploy EMET (Enhanced Mitigation Experience Toolkit): Microsoft's free EMET tool (though now superseded by Exploit Guard in Windows 10) was highly recommended for perimeter systems and common applications (Adobe, Java, Office). EMET actively mitigates common exploitation techniques like Return-Oriented Programming (ROP), adding a significant layer of defense against memory-based attacks.
- Enforce Network Segmentation: Moving away from flat network architectures is critical. Network segmentation ensures that if one part of the network is compromised, attackers cannot easily move laterally to other sensitive areas (e.g., sales shouldn't directly communicate with R&D or critical servers).
- Restrict Domain Admin Privileges: Domain Administrator accounts should only be used to log into Domain Controllers. Allowing domain admins to log into member servers or workstations creates easy targets for credential theft and escalation, which can quickly lead to full domain compromise. Separate, less privileged accounts should be used for server administration.
- Focus on Detection Capabilities: Rather than solely focusing on prevention (which is increasingly difficult), organizations must invest heavily in detection capabilities. This includes effective logging, monitoring, and alert systems (e.g., SIEM solutions), coupled with skilled analysts who can interpret and respond to alerts. Kennedy emphasizes that attackers will find a way in; the goal is to detect them as they are doing it.
- Invest in Talent and Programs, Not Just Products: The industry needs to shift its investment from simply buying more security products to building robust security programs staffed by skilled human talent. This includes hiring, training, and retaining competent security professionals who can implement, manage, and continuously improve security controls.
- Promote Red Team/Blue Team Collaboration: Kennedy advocates for close collaboration between offensive (Red Team) and defensive (Blue Team) security professionals. Red team exercises should not just be about finding vulnerabilities but about testing and improving the blue team's detection and response capabilities. This iterative process sharpens both offensive and defensive skills, leading to a more secure organization.
Key Takeaways
- Focus on the Fundamentals: The vast majority of breaches (99%) stem from basic security failures like default passwords, missing patches, and social engineering, not sophisticated zero-day exploits. Prioritize strong basics over chasing APTs.
- Talent Over Technology: Investing millions in security products without sufficient skilled personnel to implement, configure, and manage them effectively is a wasted effort. Build strong security programs with skilled talent first.
- The Human Element is Key: End-users remain the easiest and most effective target. Robust security awareness training, coupled with technical controls like restricting PowerShell for users, is crucial to mitigate this risk.
- Bypass "Next-Gen" Tools with Simplicity: Many advanced security solutions (sandboxes, application whitelisting) can be bypassed with simple, clever techniques, such as checking for low CPU cores in sandboxes or using PowerShell injection to avoid touching disk.
- Implement Strong Endpoint and Network Controls: Randomize local admin accounts, restrict domain admin logins to domain controllers, utilize AppLocker to control execution, and enforce network segmentation to limit lateral movement.
- Prioritize Detection and Collaboration: Since prevention is never 100% effective, focus on building robust detection capabilities. Foster collaboration between red and blue teams to continuously test and improve defensive strategies.
About the Speaker(s)
David Kennedy is a highly respected figure in the information security community, known for his pragmatic approach to cybersecurity and his extensive contributions to the field. He is the founder of TrustedSec, a leading information security consulting firm, and also the founder of the popular security conference DerbyCon. Kennedy's background includes service in the military, where he specialized in military intelligence and crypto analysis.
Throughout his career, he has been a prolific creator and contributor to open-source security tools and resources. He is the creator of the widely used Social Engineer Toolkit (SET), a powerful framework for performing social engineering attacks, which he continues to update and demonstrate. He is also a contributor to and creator of Artillery, a tool for automating security tasks, and is one of the writers of the Metasploit book. Kennedy has testified in front of the U.S. Congress twice on cybersecurity matters, sharing his expertise on the realities of cyber threats. His work consistently emphasizes the critical importance of human skill and practical understanding in navigating the complex world of information security.