← Back to feed
Threat Actors & CampaignsEmerging1 sourceAug 30, 2021 · 16:22via Embrace The Red (AI agent security)

Backdoor users on Linux with uid=0

Brief

On Unix/Linux users with a uid=0 are root. This means any security checks are bypassed for them.

An adversary might go ahead and create a new account, or set an existing account’s user identifier ( uid ) or group identifier to zero.

A simple way to do this is to update /etc/passwd of an account, or use usermod -u 0 -o mallory .

Let’s create a new user named mallory :

wuzzi@saturn:/$ sudo adduser mallory [...] wuzzi@saturn:/$ cat /etc/passwd

  • grep mallory

mallory:x:1001:1001::/home/mallory:/bin/sh Observe that the user has the uid 1001 .

Read more on Embrace The Red (AI agent security)