Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
lxd-group-privesc-report — Proof-of-concept and educational report demonstrating local privilege escalation to root via default LXD group membership on Ubuntu Server, with detection and mitigation scripts. | Kitploit
Tools/GitHubGitHub/star-sg/lxd-group-privesc-report
Privilege EscalationContainer SecurityVulnerability AnalysisExploitationLearning & EducationLabs & Practice
GitHubstar-sg/lxd-group-privesc-report

lxd-group-privesc-report

Proof-of-concept and educational report demonstrating local privilege escalation to root via default LXD group membership on Ubuntu Server, with detection and mitigation scripts.

Share
View Repository
71375 months agoNot yet reviewed

LXD Root

Local Privilege Escalation to root via default lxd group membership and the lxd-installer package on Ubuntu.

Demo: privilege escalation from an unprivileged lxd-group user to root

Demo runs on AWS EC2 Ubuntu Server 26.04

The bug is that Ubuntu Server 26.04's default install silently grants the primary user membership in the lxd group, a group that by LXD's trust model equals passwordless root, while presenting it as an innocuous "container management" capability. Moreover, that unprivileged user can install and set up LXD on their own, without any additional privilege, so the root-equivalent group is reachable end to end without ever touching the sudo password.

Am I affected?

A host is exposed when both are true: someone unprivileged is in the lxd group, and a root-run LXD path (an installed daemon, or the lxd-installer socket) is reachable.

Check and run poc/check-vulnerable.sh:

cd poc && chmod +x check-vulnerable.sh && ./check-vulnerable.sh

LPE PoC

cd poc && chmod +x exploit.sh && ./exploit.sh # run as an unprivileged user in the lxd group

See poc/README.md for requirements, expected output, manual reproduction, and cleanup.

Suggested mitigation

The fix is on the distro side: Ubuntu Server should not place the primary user in the lxd group by default. That group is root-equivalent, so it deserves the same explicit, understood grant as sudo, not a silent default. Requiring the sudo password before the on-demand lxd-installer runs would also close the pre-install vector, but on its own it leaves an already-installed LXD exposed.

Temporary patch

Until that lands, remove every unprivileged account from the lxd group. The change takes effect on the member's next login.

getent group lxd               # list current members
sudo gpasswd -d "$USER" lxd    # remove one member; repeat for each

Then treat lxd membership like passwordless sudo: grant it only to users you already trust with root.

Credits

  • Weiming Shi (swing) — STAR Labs SG Pte. Ltd.
  • n132

Disclaimer

We responsibly disclosed this issue to the Ubuntu Security team and, following their review, it was determined not to constitute a security vulnerability.

This material is provided solely for authorized security research, testing, and educational purposes. It should only be used on systems that you own or for which you have obtained explicit permission to assess. The authors assume no responsibility or liability for any misuse, damage, or consequences arising from the use of this information.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    871
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    548
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    383
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    361
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    305
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    280

Explore all tools

Browse our collection of tools

View all tools →