Cybersecurity
The Engineer's Guide to Linux Kernel Hardening
A comprehensive guide for engineers on securing the core of the Linux OS through configuration, security modules, and modern defense techniques.
Linux kernel hardening is the process of configuring its built-in security features to minimize the attack surface, a critical practice for protecting modern infrastructure. As the core of the operating system, the kernel is a prime target, and while modern distributions have strong security defaults, they are often tuned for broad compatibility over maximum resilience. In complex cloud-native and edge computing environments, this default posture can leave systems exposed to sophisticated threats.
This guide provides a defense-in-depth approach to kernel hardening, covering essential sysctl configurations, security-focused compile-time options, and the use of Linux Security Modules (LSMs) like SELinux and AppArmor. We will also explore how modern eBPF-based tools can provide powerful runtime security and observability. You will learn to leverage the kernel's self-protection mechanisms to build a more secure and resilient foundation for your applications.
Latest briefings on The Engineer's Guide to Linux Kernel Hardening
Security
Old Virus Secretly Altered Calculations
A newly analyzed computer virus from over 20 years ago, named fast16.sys, reveals an early Stuxnet-style attack. The malware was designed to selectively target high-precision calculation software, subtly altering results in memory. This highlights a long-standing threat of data manipulation in critical systems.
Neeraj Dhiman ·
Security
Django Patches Critical Flaw Allowing Remote Server Takeover
Django maintainers have released emergency security updates to resolve a critical flaw dubbed Django4shell. The bug carries a 9.0 severity rating and allows remote attackers to execute unauthorized code via GeoDjango form validation.
Neeraj Dhiman ·
Security
How a Docker Bug Could Steal Your AI Keys
A flaw in Docker Sandboxes, a tool for testing AI agents, could let attackers steal your secret API keys. Malicious updates to third-party agent kits can exploit the bug to leak sensitive credentials from your development environment.
Neeraj Dhiman ·
AI
AWS Just Open Sourced Its AI Software Engineers
AWS has open-sourced Strands Factory, a system of autonomous AI agents designed to handle engineering tasks like fixing bugs, reviewing code, and maintaining the codebase, aiming to automate routine developer work.
Neeraj Dhiman ·
Infra
Google Tool Ends App vs Network Blame Game
Google Cloud released Network Services Monitoring for GKE in preview. The tool helps teams quickly determine if connection errors are caused by the application or the underlying network, ending the common blame game between developers and network admins.
Ashish Kale ·
Security
A Common Data Library Has Serious Security Holes
A widely used library for scientific data, CFITSIO, has two critical security flaws. One allows attackers to run arbitrary code, while the other can cause crashes or leak data, putting sensitive research and analysis systems at risk.
Neeraj Dhiman ·
Security
Flaw in Popular C++ Library Allows Code Execution
A critical vulnerability in the widely used POCO C++ library affects major Ubuntu LTS releases. The flaw could allow attackers to crash applications or even execute arbitrary code, requiring immediate patching for affected systems.
Neeraj Dhiman ·
Infra
AI Coding Gains Depend on More Than AI
AI coding assistants didn't immediately increase software deployment rates. A new analysis of 2,406 companies shows that gains only appeared after two years, and only for teams with the right processes and tools in place.
Ashish Kale ·
Security
How an Image File Could Give Hackers Control
A security flaw in the OpenEXR image library could allow an attacker to crash systems or run malicious code. The vulnerability, affecting Ubuntu 22.04 LTS, is triggered by how the library processes specific types of image data.
Neeraj Dhiman ·
Security
Hackers Turn AI Hub Into a Malware Trap
Attackers have flooded AI platform Hugging Face and GitHub with over 5,000 fake game cheats. These pages trick users into downloading malware designed to steal browser passwords, cookies, and sensitive session data from their computers.
Neeraj Dhiman ·
Security
New Windows Spyware Evades Defenses with Simple Tricks
Researchers have uncovered a new Windows spyware called Protopterus, used in targeted spear-phishing attacks. The discovery shows how attackers continue to develop novel tools to evade detection and compromise specific, high-value targets.
Neeraj Dhiman ·
Security
Hackers' New AI Tool Can Be Hacked Right Back
A popular AI hacking tool used by criminals can be turned against them. Security researchers found that target systems can trick the tool into running malicious code, giving defenders root access to the attacker's own system.
Neeraj Dhiman ·
Security
Hackers May Be Using AI to Breach Governments
Canada's military export system was breached by hackers suspected of using AI-enabled tools. This incident highlights a new, sophisticated threat vector that could make attacks faster, more scalable, and harder for security teams to detect.
Neeraj Dhiman ·
Security
Your Ubuntu 22.04 Servers Could Be at Risk
Ubuntu has issued an urgent security notice for its 22.04 LTS release. Multiple high-severity flaws in the Mbed TLS library could allow attackers to crash servers, steal data, or even recover private keys.
Neeraj Dhiman ·
Security
PostgreSQL Tool Flaw Exposes User Credentials
A critical vulnerability in Pgpool-II, a popular connection manager for PostgreSQL, could allow attackers to steal database user credentials. The flaw affects several widely used Ubuntu long-term support server versions, requiring immediate attention from administrators.
Neeraj Dhiman ·
Security
A Flaw in Ubuntu's Core Library Can Crash Servers
A newly patched vulnerability in a core Linux library affects popular Ubuntu LTS releases, including 14.04, 16.04, 18.04, and 20.04. The flaw could allow an attacker to crash systems, causing a denial of service.
Neeraj Dhiman ·
Security
Ubuntu Kernel Flaw Traced to Gaming Gear Driver
A security flaw in the OpenRazer driver for gaming peripherals on Ubuntu could let a malicious USB device access sensitive kernel memory. The vulnerability affects popular long-term support versions, requiring immediate patching for affected users.
Neeraj Dhiman ·
Infra
Vercel Board Now Runs on Your Own Database
Vercel Board now lets developers connect their own backend, starting with Postgres. This gives teams full control over their data, addressing critical compliance and data ownership needs while using Vercel's collaborative tools.
Ashish Kale ·
Security
ZNC Flaws Could Let Attackers Control Your Server
Multiple security flaws were found in the ZNC IRC bouncer on older Ubuntu LTS versions. Attackers could crash servers or potentially run their own code, creating a significant security risk for teams using this software.
Neeraj Dhiman ·
Security
Hackers Breached Turnitin Systems for Nearly Two Months
Education platform Turnitin confirmed hackers accessed its systems for nearly two months, from October 1 to November 23. The company is still investigating the full scope of the data breach and its impact on student information.
Neeraj Dhiman ·
Infra
Vercel Now Connects to AWS Without Access Keys
Vercel has launched a new AWS connector that lets applications access services like S3 and Bedrock without storing long-lived access keys. This improves security by using temporary, automatically rotated credentials for each request.
Ashish Kale ·
Security
Your Text Scanning App Could Be at Risk
Security flaws in the popular Tesseract OCR library could let an attacker crash your application with a specially crafted image or file. The vulnerabilities affect systems that automatically process documents, making them vulnerable to denial-of-service attacks.
Neeraj Dhiman ·
Security
Ubuntu Is Removing Untrusted Security Certificates
Ubuntu has updated its ca-certificates package, removing untrusted authorities like emSign and refreshing its entire root store. This crucial maintenance helps protect servers from man-in-the-middle attacks and ensures secure connections continue to work.
Neeraj Dhiman ·
Security
Same AI Weights Can Now Produce Different Results
A new attack called Weight2Shell can hide backdoors in AI models that only activate on specific hardware. This breaks the core assumption that the same model weights will always produce the same results, creating a major new supply chain risk.
Neeraj Dhiman ·
AI
Your AI Agent Is Creating a Security Blind Spot
Many AI systems make a critical security mistake by having agents impersonate users. A new analysis argues this creates a dangerous 'identity gap,' making it impossible to track what the agent did versus what the human did.
Neeraj Dhiman ·
Security
A Botnet Is Selling Your Internet With Real Apps
A botnet named GreedyRat is hijacking Android TV boxes to secretly sell their owners' internet bandwidth. The attackers install multiple legitimate bandwidth-sharing apps, turning the devices into a source of passive income without the user's knowledge.
Neeraj Dhiman ·
Security
Experts Form Group to Vet AI Crypto-Breaking Claims
Amid rumors of an AI model breaking modern encryption, a new expert group has formed to review any such claims. The focus appears to be on public-key cryptography, which secures most internet traffic and transactions.
Neeraj Dhiman ·
Infra
Your SBOM Has a Major Security Blind Spot
A Software Bill of Materials (SBOM) tells you what's in your code, but not how it's used. This creates a critical security blind spot, making it hard to assess real-world risks from vulnerable libraries.
Ashish Kale ·
Security
New AI Can Plan and Launch Cyberattacks Autonomously
A new AI tool called ARTEX can autonomously plan and execute cyberattacks. Originally an open-source project, it evolved into a weapon in weeks, using AI agents to run common hacking tools with minimal human oversight.
Neeraj Dhiman ·
Security
New Android Malware Hunts for High-Value Bank Accounts
A new Android malware called Godfather Tech is impersonating 182 banks and 38 crypto platforms. It reportedly uses AI to identify and prioritize attacks on victims with the most money, increasing the financial risk.
Neeraj Dhiman ·
Frequently asked questions
What is Linux kernel hardening?
Linux kernel hardening is the process of configuring the kernel to reduce its attack surface and make exploits harder to execute. This involves tuning runtime parameters via sysctl, enabling compile-time defenses like Control-Flow Integrity (CFI), and using Linux Security Modules (LSMs) or eBPF for mandatory access control. The goal is to contain breaches and eliminate entire classes of vulnerabilities proactively.
What's the difference between SELinux and AppArmor?
Both are mature Linux Security Modules (LSMs) for enforcing Mandatory Access Control (MAC), but they use different models. SELinux, common in RHEL-based systems, is label-based, applying a detailed security context to every process and object for granular control, but with significant complexity. AppArmor, used by Debian and SUSE families, is path-based, making it simpler to define profiles for specific applications.
How do sysctl settings improve kernel security?
The sysctl interface allows engineers to tune kernel parameters at runtime to strengthen security without a reboot or recompilation. Key examples include enabling TCP SYN cookies (`net.ipv4.tcp_syncookies`) to mitigate DoS attacks, hardening the eBPF JIT compiler (`net.core.bpf_jit_harden`), and restricting unprivileged user access to kernel pointers (`kernel.kptr_restrict`). These settings are crucial for hardening the networking stack and memory management.
What is the Kernel Self Protection Project (KSPP)?
The Kernel Self Protection Project (KSPP) is a collaborative effort to build proactive defenses directly into the upstream Linux kernel, aiming to eliminate entire bug classes and make exploits more difficult. Rather than patching individual CVEs, it focuses on systemic improvements. Key features driven by KSPP include robust Control-Flow Integrity (CFI) using Clang, Shadow Stack support for mitigating ROP attacks, and struct layout randomization.