Debian 13 Minimal
Overview
Debian 13, codenamed trixie, is the current stable release of Debian. This SecureAnyCloud image is a trimmed Debian 13 virtual machine for Microsoft Azure that carries only what a VM managed by automation needs. Deploy it from the Azure Marketplace.
What makes this image different from the standard Debian 13 image is the package profile. Debian publishes no minimal cloud image, but its Policy defines the minimal system: the required and important priority classes, exactly the set debootstrap installs by default. This image keeps that Policy-defined base, the Azure provisioning stack and their dependencies, and nothing else.
Measured at capture on this exact image, the standard image has 329 packages and this one has 287 (42 fewer), and the dpkg payload is 99 MiB smaller. Debian's cloud image is already lean, so the trim removes only the interactive and diagnostic layer that automation never touches: the full vim, manual page content, packet capture, the terminal multiplexer and bug reporting tools. The tools nano, vi, man and ping remain, because Debian Policy classes them as part of the base.
A manifest generated from the image's own package database ships at /usr/share/sac/debian-13-minimal.manifest. It states what is installed, what was removed and what that means in practice. Anything you miss is one apt install away from the standard Debian archives.
What you get:
- Debian 13 (trixie) with the Minimal package profile: 287 packages, cut to Debian Policy's base system plus the Azure provisioning stack, from SecureAnyCloud's own hardened standard image
- The full Azure provisioning path, protected from the trim by construction: cloud-init, the Azure Linux Agent (waagent), OpenSSH, netplan, Debian's cloud kernel and its initramfs boot chain
- A shipped manifest and trim ledger derived from the image's own package database, so the delta is measured, never asserted
- Every available security update applied at build time, with
unattended-upgradesarmed and proven against the Debian security archive - Automatic root filesystem growth at first boot on larger disks, using the stock Debian mechanism (proven in Step 7)
- chrony for NTP time synchronisation
- AppArmor in enforcing mode
- LLMNR disabled, so the only off-box listener is SSH
- Gen2 Hyper-V virtual machine support
- 24/7 SecureAnyCloud support
Deliberately not included (each is one apt install away): the full vim (vi via vim-tiny and nano remain), manpages content (the man command remains), tcpdump, screen, pciutils, reportbug, bash-completion, socat, the host DNS tool, polkitd, and the libraries only they used. The standard Debian cloud image ships no classic cron, no rsyslog and no NFS client, and neither does this one.
Platform: Microsoft Azure (Gen2 Hyper-V, x64)
Default user: azureuser
Security posture
This image ships with no known credential. There is no default password and no baked-in SSH key:
- The root account password is locked, so no one can log in as root with a password.
PasswordAuthenticationis disabled in the SSH daemon, so every login is by key.PermitRootLoginis set toprohibit-password, so root cannot be reached with a password even if one is set later.- The only key that works is the public key you supply when you create the virtual machine. Azure injects it into
azureuserat first boot, so no two machines you launch share a secret. - The machine identity and the SSH host keys are regenerated uniquely on every instance, so no two machines share a host key either.
- AppArmor is enabled and enforcing. The trim deliberately keeps it, so the Minimal profile never trades away the standard image's security posture.
- LLMNR is disabled. Stock Debian 13 listens off-box on TCP and UDP port 5355 for LLMNR, a legacy name resolution protocol with a well-known spoofing attack class. This image switches it off, leaving SSH as the only off-box listener.
- The trim is itself a security feature. With 42 fewer installed packages, there are 42 fewer things to carry vulnerabilities, patch and audit.
Prerequisites
Before you deploy this image, make sure you have:
- An active Microsoft Azure subscription
- Access to the Azure portal or the Azure CLI
- An SSH key pair for Linux VM access
- Familiarity with Azure VM management
Recommended VM size: Standard_B2s (2 vCPU, 4 GB RAM) or larger. The Minimal profile is also comfortable on Standard_B1s for light duties.
Disk size: The image ships as a 30 GiB OS disk. If you deploy onto a larger disk, the root filesystem grows itself during first boot, with no manual steps (see Step 7).
Deploy the Virtual Machine
Option A: Azure Portal
- Go to the Azure Marketplace and search for "Debian 13 Minimal SecureAnyCloud".
- Select the image and click Create.
- Configure the basics:
- Subscription: Select your Azure subscription.
- Resource group: Create a new group or select an existing one.
- Virtual machine name: Enter a name for your VM.
- Region: Select your preferred Azure region.
- Size:
Standard_B2sis recommended.
- Under Administrator account, select SSH public key and enter your key.
- Under Inbound port rules, allow SSH (port 22).
- On the Disks tab, set the OS disk size you want. The root filesystem fills it automatically at first boot.
- Click Review + create, then Create.
Option B: Azure CLI
az vm image terms accept --urn sac1647283583153:debian-13-minimal:default:latest
az vm create \
--resource-group myResourceGroup \
--name my-debian-minimal-vm \
--image sac1647283583153:debian-13-minimal:default:latest \
--size Standard_B2s \
--os-disk-size-gb 64 \
--admin-username azureuser \
--generate-ssh-keys \
--public-ip-sku Standard--os-disk-size-gb 64 deploys the 30 GiB image onto a 64 GiB disk. Nothing further is needed. The root partition and filesystem grow to fill the disk during first boot.
Connect via SSH
Run these commands on your own workstation, not on the VM. Find the public IP address, then connect:
az vm show --resource-group myResourceGroup --name my-debian-minimal-vm --show-details --query publicIps -o tsv ssh azureuser@<vm-ip>There is no password to enter. If SSH asks you for one, the key you supplied at create time is not the key your client is offering.
Confirm the release and the Minimal profile
Check that the machine is the Debian 13 release you expect:
grep -E '^(NAME|VERSION|ID|VERSION_ID|PRETTY_NAME)=' /etc/os-release cat /etc/debian_version uname -srm dpkg --print-architectureExpected output:
PRETTY_NAME="Debian GNU/Linux 13 (trixie)" NAME="Debian GNU/Linux" VERSION_ID="13" VERSION="13 (trixie)" ID=debian 13.7 Linux 6.12.107+deb13-cloud-amd64 x86_64 amd64The -cloud-amd64 kernel matters. This image keeps Debian's cloud kernel flavour, with the Hyper-V drivers included, which is the same kernel Debian's own Azure images run.
Now confirm the defining property of this image, the Minimal package profile:
dpkg-query -Wf '${Package}\n' | sed 's/:.*$//' | sort -u | wc -l df -h /Expected output on a fresh VM deployed with the default 30 GiB disk:
287 Filesystem Size Used Avail Use% Mounted on /dev/sda1 30G 566M 28G 2% /The count is 287 packages against the standard image's 329. The trim ran as a single guarded, simulated package transaction down to Debian Policy's own base system definition. The provisioning path (cloud-init, the Azure agent, OpenSSH, netplan and the boot chain) is on the guard's protected list, so it cannot be trimmed by construction.
Read the shipped manifest
The image states what it is. The manifest is generated from the package database at capture and is never written by hand, so it cannot disagree with the machine you are on:
head -10 /usr/share/sac/debian-13-minimal.manifestExpected output:
# Debian 13 Minimal — sac shipped manifest
# DERIVED from the dpkg database on this image at 2026-09-12T09:13:03Z (capture time) — never hand-written.
# Baseline: the sac 'Debian 13' (std) image this Minimal is cut from.
#
# WHAT 'MINIMAL' MEANS HERE: Debian publishes no minimal cloud artefact, but
# Debian Policy defines the minimal system — priority classes required +
# important, exactly what debootstrap installs by default. This image keeps
# that Policy-defined base, the Azure provisioning/boot/security lineage
# (cloud-init, the Azure agent, kernel + boot chain, networking, chrony,
# AppArmor, unattended-upgrades), and their dependencies — nothing else.The capability notes further down the file state what is and is not on board and how to restore each piece:
sed -n '/capability notes/,/^#$/p' /usr/share/sac/debian-13-minimal.manifestExpected output:
# --- capability notes, each DERIVED from a probe on this image --- NFS: this image has NO NFS client (the std Debian azure image ships none either), NFS: so 'mount -t nfs' will not work as shipped. Restore it with:
sudo apt install nfs-common MAN: the man command is installed (man-db is priority important — part of the Policy-defined base). CRON: no classic cron daemon (the std Debian azure image ships none either); systemd CRON: timers provide scheduling. Restore classic cron with:
sudo apt install cron EDITOR: nano and vi (vim-tiny) are installed (both priority important — Policy base); EDITOR: full vim was removed by the trim. Restore with:
sudo apt install vim PROVISIONING: cloud-init 25.1.4 + waagent 2.12.0.2-3 are installed — the full Azure provisioning path is retained. KERNEL: 6.12.107+deb13-cloud-amd64 (Debian's cloud kernel flavour — Hyper-V drivers included, the same kernel the std image runs). UPDATES: unattended-upgrades is installed and armed — security updates auto-apply, exactly as on the std image. GROW: the root filesystem auto-grows to the disk size you deploy (the stock Debian GROW: mechanism — initramfs growroot + x-systemd.growfs + cloud-init — is fully retained). DOCS: the trim is package-level; /usr/share/doc of every RETAINED package is intact.The full installed package list follows the notes in the same file, one package per line with its version. Use it for compliance snapshots and drift comparisons.
Check the patch level
The image is fully updated at build time. Confirm that no upgrades are pending and that the update path is intact:
apt-get -s -o APT::Get::Always-Include-Phased-Updates=true dist-upgrade | grep -c '^Inst ' | sed 's/^/pending upgrades: /' apt-mark showhold dpkg -l | awk '/^ii linux-image-[0-9]/{print $2, $3}'Expected output shows pending upgrades: 0, no held packages, and exactly one installed cloud kernel:
pending upgrades: 0 linux-image-6.12.107+deb13-cloud-amd64 6.12.107-1Debian has no phased updates in practice, but the flag is accepted and harmless, and it keeps this check identical across the SecureAnyCloud Debian and Ubuntu families.
This image also arms unattended-upgrades, proven at build time with a real preview run resolving the Debian-Security origin, so security updates keep applying themselves. You can still run updates on your own schedule:
sudo apt-get update && sudo apt-get -y dist-upgradeReboot if a new kernel was installed:
sudo systemctl rebootVerify the security posture
Confirm that AppArmor is enforcing, root is locked, SSH is key-only and LLMNR is off:
sudo aa-status --enabled && echo "apparmor: enabled"
sudo passwd -S root
sudo sshd -T | grep -E '^(permitrootlogin|passwordauthentication|pubkeyauthentication) ' resolvectl status 2>/dev/null | awk '/-LLMNR/ && !p {print; p=1}'Expected output:
apparmor: enabled root L 2009-12-22 -1 -1 -1 -1 permitrootlogin without-password pubkeyauthentication yes passwordauthentication no Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupportedwithout-password is how OpenSSH reports the prohibit-password setting. Both names mean the same thing: root may not authenticate with a password. The L from passwd -S means the root account is locked, and -LLMNR confirms the legacy multicast name resolution listener is off.
Disk growth is automatic on this image
If you deployed onto a disk larger than 30 GiB, as in the Step 1 CLI example, there is nothing to do. This image keeps the standard flat root layout and the stock Debian growth mechanism. The initramfs extends the root partition during first boot, and systemd grows the filesystem as it mounts. Confirm it:
df -h /Expected output on a 64 GiB disk, exactly as produced by this image:
Filesystem Size Used Avail Use% Mounted on /dev/sda1 63G 566M 60G 1% /The proof is in the kernel's own log, which records the ext4 online resize that systemd-growfs performed at mount time:
sudo dmesg | grep 'resized filesystem' grep 'NOCHANGE\|resized' /var/log/cloud-init.log | tail -1Expected output (block counts vary with your disk size):
[ 8.439276] EXT4-fs (sda1): resized filesystem to 16744443 2026-09-12 08:37:57,592 - cc_growpart.py[DEBUG]: '/' NOCHANGE: no change necessary (/dev/sda, 1)The NOCHANGE line is correct and expected on Debian. By the time the cloud-init growpart module looks at the disk, the initramfs has already grown the partition, so cloud-init finds nothing left to do. On distributions without the initramfs grow step, the same line reads resized: changed.
Growing an existing VM later: Enlarge the OS disk. Deallocate the VM, run az disk update --resource-group <rg> --name <os-disk-name> --size-gb <new-size> and start the VM, or use the portal's Disks blade. The root grows again on the next boot. This layout never needs manual partitioning.
Networking and the firewall
The Azure network security group controls inbound and outbound traffic. It is the first, and usually the only, place you need to open a port. The image advertises a single inbound port, SSH on 22. Confirm what is listening:
sudo ss -tlnpExpected output shows sshd on port 22 (IPv4 and IPv6) and systemd-resolved on the loopback-only stub addresses:
State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=986,fd=6)) LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=432,fd=15)) LISTEN 0 4096 127.0.0.54:53 0.0.0.0:* users:(("systemd-resolve",pid=432,fd=17)) LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=986,fd=7))On stock Debian 13 you would also see 0.0.0.0:5355 and [::]:5355, which is the systemd-resolved LLMNR listener. This image disables LLMNR because it is a deprecated spoofing vector and is useless on an Azure VNet. SSH is therefore the only off-box socket.
Debian enables no host firewall by default. nftables is the framework and the NSG is the enforced firewall, which is the normal arrangement on Azure. If your policy also requires a host firewall, install and enable one. Add the SSH rule first so that you do not lock yourself out:
sudo apt install -y ufw
sudo ufw allow OpenSSH
sudo ufw enableOnce ufw is running, a port must be open in both the Azure NSG and ufw before traffic reaches your service.
Install software
The trim removes nothing from your reach. The machine points at the standard Debian archives (main component), so every removed package, and anything else in the archive, installs normally. Search, then install what you need:
apt-cache search --names-only '^nginx' 2>/dev/null | sed -n '1,3p'Expected output:
nginx - small, powerful, scalable web/proxy server nginx-common - small, powerful, scalable web/proxy server - common files nginx-core - nginx web/proxy server (standard version)Install a package and enable it in the usual way, for example sudo apt-get install -y nginx followed by sudo systemctl enable --now nginx. The everyday absences and their one-line restores are in the shipped manifest (Step 4): vim for the full editor, cron for classic cron jobs, nfs-common for NFS mounts, tcpdump for packet capture.
To add another administrator, create the account with sudo adduser <name> and add it to the sudo group with sudo usermod -aG sudo <name>. Then copy your public key into /home/<name>/.ssh/authorized_keys with mode 600, and give the .ssh directory mode 700, owned by that user.
The image ships with no human accounts at all, so azureuser is the only login until you add one:
getent group sudoExpected output:
sudo:x:27:azureuserCommon use cases
- Container and automation hosts that want the smallest practical Debian base under their workloads
- Security-conscious deployments, with fewer installed packages to patch, scan and audit
- Fleets managed entirely by SSH and configuration management, where interactive tools add no value
- A fast-booting, quick-patching stable Debian base for ephemeral and scale-out workloads
Troubleshooting
Cannot connect via SSH
- Verify that the VM is in the Running state in the Azure portal.
- Check that port 22 is allowed in the network security group.
- Make sure you are using the correct username:
azureuser. - Verify that your SSH key matches the one you supplied at create time. Password login is disabled by design, so a wrong key cannot fall back to a password prompt.
To see which key your client is actually offering, run ssh -v azureuser@<vm-ip> from your workstation and look for the Offering public key lines.
"command not found" for vim, crontab or tcpdump
This is expected. Those tools are outside Debian Policy's base system, which this image is cut to. Each is one command away (see the shipped manifest in Step 4): sudo apt install vim, sudo apt install cron, sudo apt install tcpdump. Until then, vi (vim-tiny) and nano are both present, because Debian Policy classes them as part of the base and the trim keeps them.
df shows 30G on a bigger disk
The automatic grow runs during first boot. If you resized the disk while the VM was running, the VM has not rebooted since the disk grew. Reboot once (sudo systemctl reboot) and the space is claimed. Check the evidence trail: sudo dmesg | grep 'resized filesystem' shows the ext4 online resize, and journalctl -u systemd-growfs-root.service shows the unit that performed it.
Azure agent not running
sudo systemctl status walinuxagentIf it is not running, start it on the VM:
sudo systemctl enable --now walinuxagentThe Debian package is named waagent; the systemd unit it ships is walinuxagent.service.
Package manager issues
Refresh the metadata cache first:
sudo apt-get updateIf repositories are unreachable, check DNS resolution. getent is always present and resolves through the same system resolver:
getent hosts deb.debian.orgA service is blocked and the logs mention AppArmor
AppArmor is enforcing on this image. A healthy machine has no denials, as measured on this exact build:
sudo journalctl -k --no-pager | awk '/apparmor/ && /DENIED/{n++} END{print "apparmor denials: " n+0}'Expected output:
apparmor denials: 0If you see denials after installing software, the denied profile's name appears in the log line. Adjust or disable that one profile rather than turning AppArmor off.
Important Notes
Debian is free and open source. It is not covered by a single licence: it is a distribution assembled from thousands of independently packaged components, each carrying its own terms, including the GPL, LGPL, MIT, BSD and Apache 2.0. Every package's terms are readable with dpkg -s <package> and under /usr/share/doc/<package>/copyright. Everything in this image comes from Debian's DFSG free main component. No subscription or licence key is required to run this image.
Debian 13 is the current stable release, with security support from the Debian Security Team followed by Debian LTS, for around five years of coverage in total. Plan a move to a newer stable image when trixie approaches the end of its LTS window.
This image's Minimal profile is package level: the installed set is Debian Policy's base system plus the Azure provisioning stack, while documentation belonging to the packages that remain is kept on disk. The shipped manifest and trim ledger at /usr/share/sac/ record the exact measured delta against the standard image, including which removals are part of Debian's own published cloud profile.
Debian is a registered trademark of Software in the Public Interest, Inc. (SPI), used here nominatively, only to identify the distribution this image contains. SecureAnyCloud is not affiliated with, endorsed by or sponsored by the Debian Project or SPI.
Support
For help with this image, contact SecureAnyCloud support:
- Website: secureanycloud.com
- Product catalogue: secureanycloud.com/products
- User guides: secureanycloud.com/guides
- SLA: 24 hour response guaranteed
Deploy on Azure
Launch Debian 13 Minimal on Azure with 24/7 support from SecureAnyCloud.
View this image
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com
Overview
Debian 13 "trixie" is the Debian Project's free, community-built operating system and its current stable release. It receives security updates from the Debian Security Team through the trixie-security archive.
This SecureAnyCloud AMI runs Debian 13 Minimal on Amazon EC2. It is one version of the SecureAnyCloud Debian listing on AWS Marketplace, which you pick as the software version when you subscribe and launch. Every release and variant in the listing is described at /guides/debian-server-aws/.
What you get: an image built from Debian's own official AMI, with five additions.
- A trimmed package set. 14 tools a cloud server does not need are removed (the bundled AWS CLI, full vim, man pages, reportbug, apt-listchanges, screen, tcpdump, socat, traceroute, the DNS lookup tool, PCI utilities, bash completion and ssh-import-id), together with the libraries and Python modules only they used. The image has 339 installed packages, 47 fewer than the standard Debian 13 version (386). Each removal is simulated first and refused if it would take a package the instance needs to boot, network or be reached. The list ships on the image.
- CIS Level 1 Server remediation. The image is remediated with the OpenSCAP CIS Level 1 Server profile from SCAP Security Guide 0.1.82 (the
ssg-debian13content, CIS Debian Linux 13 Benchmark v1.0.0), then rebooted and evaluated. On this build 359 of 363 scored rules pass (98.9%); a re-run on a running instance gives 358 of 363 (98.6%), for the reason given in Step 6. Six rules are waived because they cannot work on an EC2 image, each with its reason. The HTML report, the machine-readable results, the waiver list and a summary ship in/usr/share/doc/sac/. - Fixes the profile's own remediation leaves undone.
nullokis removed from PAM (the content's fix could not apply it), martian-packet logging stays on after ufw starts, the AIDE check the profile adds runs Debian'saidebinary, and the AIDE log files belong to the_aideaccount so Debian's own daily AIDE check can rotate them; the instance boots, and keeps running day after day, with no failed services. - EC2 defaults that keep you in control. Key-only SSH as
admin, root locked, no password on any account, X11 forwarding off, AppArmor enabled, IMDSv2 required, a host firewall (ufw) that allows SSH in and everything out, the AWS Systems Manager agent, and time from the Amazon Time Sync Service. - Fully patched at build time, with
unattended-upgradesinstalling Debian security updates on your instance.
What is on the image: Debian 13 (the Debian cloud-amd64 kernel), cloud-init, OpenSSH, ufw, chrony, AppArmor, the AWS Systems Manager agent, rsyslog, AIDE file integrity checking, exim4 for local mail only (loopback, no inbound SMTP), unattended-upgrades, curl, nano and vi (vim-tiny), OpenSCAP and the pinned SCAP Security Guide content used for the evaluation.
Not on the image (removed by the trim): the AWS CLI, full vim, man and the manual pages, reportbug, apt-listchanges, screen, tcpdump, socat, traceroute, host, lspci, bash completion and ssh-import-id. Each is one sudo apt-get install away (Step 13).
Default user: admin · Architecture: x86_64 · Root volume: 8 GiB gp3, ext4 (grows to the size you choose at launch)
These images are remediated with an OpenSCAP profile and ship their own evaluation report. They are not CIS Hardened Images, and CIS has not reviewed or certified them.
Connecting to your instance
Version SSH user Root device
Debian 13 Minimal admin /dev/xvda (8 GiB gp3)
Security posture
- No known credential. There is no default password and no baked in SSH key. The only key that works is the EC2 key pair you choose at launch, which cloud-init installs for
adminon first boot. - Key-only SSH.
PasswordAuthentication no,PermitRootLogin no, keyboard-interactive off, X11 forwarding off. The root account has no password and is locked. - Per-instance identity. SSH host keys and the machine ID are generated fresh on every instance, so no two instances share a host key.
- IMDSv2 required. The AMI is registered with
ImdsSupport v2.0, so instances launched from it refuse token-less (IMDSv1) metadata requests by default. - AppArmor enabled, with Debian's own profiles loaded as Debian ships them (the services it confines by default, such as chronyd, in enforce mode).
- Host firewall. ufw denies inbound traffic except SSH and allows all outbound traffic, so the SSM agent, metadata service, DNS, time and package updates keep working.
- Only SSH listens on the network. The DNS stub resolver and the local mail service listen on loopback only.
Prerequisites
- An AWS account and permission to launch EC2 instances
- An EC2 key pair in the Region you launch in
- A security group that allows TCP 22 from your own address (not from the whole internet)
Recommended instance type: m5.large. The image runs on any current x86_64 instance type.
Launch the instance
Option A: AWS Marketplace console
- Open the SecureAnyCloud Debian listing on AWS Marketplace and choose View purchase options, then Subscribe. One subscription covers every version in the listing.
- Once the subscription is active, choose Launch your software.
- Choose One-click launch from AWS Marketplace (or Launch from EC2 Console for full control), then in Version choose Debian 13 Minimal - YYYY-MM-DD (the date is when the version was added) and your Region.
- Instance type:
m5.largeis recommended; any current x86_64 type works. The software charge is $0.04 per vCPU per hour. - Key pair: choose your EC2 key pair. It is the only way in. RSA and ED25519 keys both work.
- Security group: allow inbound TCP 22 from your own IP address or network only.
- Storage: the root volume is 8 GiB gp3 by default. Choose a larger size if you need one; cloud-init grows the root partition and filesystem to fill it on first boot.
- Metadata: leave the defaults. The image already requires IMDSv2. Then choose Launch.
Option B: AWS CLI
Run this on your own workstation. Replace the AMI ID with the one shown for your Region on the Marketplace launch page, and the key pair, security group and subnet with your own. The root device of this AMI is /dev/xvda:
aws ec2 run-instances \
--image-id ami-0123456789abcdef0 \
--instance-type m5.large \
--key-name my-key-pair \
--security-group-ids sg-0123456789abcdef0 \
--subnet-id subnet-0123456789abcdef0 \
--block-device-mappings 'DeviceName=/dev/xvda,Ebs={VolumeSize=20,VolumeType=gp3}' \
--tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=debian-13-minimal}]'You do not need --metadata-options: the AMI already makes IMDSv2 required.
Connect via SSH
From your workstation, connect as admin with the key pair you chose:
ssh -i ~/.ssh/my-key-pair.pem admin@<public-ip>There is no password to enter. If SSH asks for one, or says Too many authentication failures, see Troubleshooting below. The SSH server shows the login banner (/etc/issue.net) before you sign in.
You can also connect without opening port 22 at all through AWS Systems Manager Session Manager, if the instance has an instance profile that allows Systems Manager. The agent is installed and running on this image.
Confirm the release
cat /etc/debian_version grep -E '^(PRETTY_NAME|NAME|VERSION_ID|VERSION|VERSION_CODENAME|ID)=' /etc/os-release uname -srmExpected output:
13.7 PRETTY_NAME="Debian GNU/Linux 13 (trixie)" NAME="Debian GNU/Linux" VERSION_ID="13" VERSION="13 (trixie)" VERSION_CODENAME=trixie ID=debian Linux 6.12.113+deb13-cloud-amd64 x86_64This version follows Debian 13: it receives every Debian 13 point release (13.7 at build time) through normal apt updates. Your kernel version may be newer if updates have installed since this image was built.
See what the Minimal trim removed
The image lists exactly what was removed, and anything a removal would have taken with it is kept and listed instead:
cat /usr/share/doc/sac/minimal-manifest.txt dpkg-query -W -f='${db:Status-Abbrev}\n' | grep -c '^ii'Expected output:
Minimal version: packages 341 -> 292 Removed: awscli vim reportbug apt-listchanges screen tcpdump socat bash-completion man-db manpages bind9-host traceroute ssh-import-id pciutils Kept (a removal would have taken a protected package, or it failed): 339The trim takes the base image from 341 packages to 292, including the dependencies that left with those 14 (the AWS CLI's Python stack, vim-runtime, the DNS and packet-capture libraries). The CIS remediation then adds the tools it needs (OpenSCAP, AIDE, ufw, chrony, rsyslog and their libraries), which brings the image to 339 installed packages. The standard Debian 13 version of this listing is built the same way without the trim, so it carries the same 339 packages plus the 47 the trim removed (386). The count on your instance moves by a few as kernels and updates install, and by one more if your account runs Amazon Inspector, whose Systems Manager association installs its own inspectorssmplugin package.
The trim never removes a candidate that would take a package the instance needs with it. On this build no candidate had to be kept, so the Kept list is empty.
Read the compliance evidence
The evaluation the build ran after its reboot ships on the image:
ls -lh /usr/share/doc/sac/ python3 -c "import json; s=json.load(open('/usr/share/doc/sac/cis-l1-summary.json')); print('profile: ', s['profileLabel'], '(SCAP Security Guide', s['ssgVersion'] + ')'); print('scored rules: ', s['scored'], ' pass:', s['pass'], ' fail:', s['fail'], ' rate:', str(s['ratePct']) + '%'); print('waived: ', s['waived'], ' not applicable:', s['notapplicable']); print('evaluated at: ', s['evaluatedAt'])"Expected output:
total 22M -rw-r--r-- 1 root root 19M Oct 25 01:28 cis-l1-arf.xml -rw-r--r-- 1 root root 2.6M Oct 25 01:28 cis-l1-report.html -rw-r--r-- 1 root root 1.3K Oct 25 01:28 cis-l1-summary.json -rw-r--r-- 1 root root 1.9K Oct 25 01:28 cis-l1-tailoring.xml -rw-r--r-- 1 root root 2.3K Oct 25 01:28 cis-l1-waivers.txt -rw-r--r-- 1 root root 278 Oct 25 01:21 minimal-manifest.txt -rw-r--r-- 1 root root 1.6K Oct 25 01:22 scap-security-guide-LICENSE.txt profile: CIS Level 1 Server (SCAP Security Guide 0.1.82) scored rules: 363 pass: 359 fail: 3 rate: 98.9% waived: 6 not applicable: 33 evaluated at: 2026-10-25T01:28:52Zcis-l1-report.htmlis the full OpenSCAP report, rule by rule. Copy it to your workstation and open it in a browser.cis-l1-arf.xmlis the same evaluation in the machine-readable ARF format, for compliance tooling.cis-l1-tailoring.xmlis the exact tailoring used, so you can re-run the same evaluation (Step 6).minimal-manifest.txtis the trim record from Step 4.- The pass rate is pass / (pass + fail + error + unknown). Rules that are not applicable to this machine, not selected, or waived are not counted.
To copy the report to your workstation, run this on the workstation:
scp -i ~/.ssh/my-key-pair.pem admin@<public-ip>:/usr/share/doc/sac/cis-l1-report.html .The six waived rules
grep -v '^#' /usr/share/doc/sac/cis-l1-waivers.txt | cut -f1,2Expected output:
partition_for_tmp [single-volume-partitions] grub2_password [serial-console-and-boot] grub2_uefi_password [serial-console-and-boot] accounts_maximum_age_login_defs [key-only-account-aging] account_disable_post_pw_expiration [key-only-account-aging] sshd_limit_user_access [ssh-access-list]The full reason for each is the third column of the same file. In short:
- Separate /tmp partition: this version boots from one EBS root volume. (The LVM versions of this listing provide separate volumes for /tmp, /var, /var/log, /var/log/audit, /var/tmp and /home.)
- Boot loader passwords: a GRUB password would have to be baked into the image, giving every instance the same secret. Root stays locked with no password. Set your own if you need serial console access (see Step 11).
- Password ageing defaults: the accounts cloud-init creates are key-only. An ageing limit would expire them and lock the SSH key out. Accounts that do have a password are still aged.
- SSH AllowUsers/AllowGroups: a list fixed at build time would refuse accounts you create later. Your security group restricts who can reach port 22.
The four rules that do not pass
python3 -c "import json; [print(r) for r in json.load(open('/usr/share/doc/sac/cis-l1-summary.json'))['failingRules']]"Expected output:
file_ownerships_var_log journald_forward_to_syslog service_systemd-journal-upload_enabled systemd_journal_upload_urlThree of them fail and one (file_ownerships_var_log) reports error. Each one is the result of a deliberate choice, and each stays in the score rather than being hidden:
Log file ownership (file_ownerships_var_log) reports error, not fail. The check accepts only files owned by root or a syslog account, and Debian has no syslog account. The one file it trips on is /var/log/aide/aide.log, which belongs to the _aide account on purpose: Debian's daily AIDE check (dailyaidecheck.service) runs as _aide and has to rotate its own log. If that file belonged to root, the daily check would fail every day and the instance would report a failed service.
journald forwarding (journald_forward_to_syslog). The profile selects both "forward the journal to syslog" and "do not forward the journal to syslog", so one of the pair always fails. The image keeps the journal as the log store (ForwardToSyslog=no). rsyslog is installed and running if you want to switch: set ForwardToSyslog=yes in /etc/systemd/journald.conf and restart systemd-journald.
- Remote journal upload (
service_systemd-journal-upload_enabled,systemd_journal_upload_url). The benchmark wants the journal sent to a remote log server. The image cannot know yours, and with no address the upload service would fail at every boot, so it is installed but disabled. To use it, setURL=to your collector in/etc/systemd/journal-upload.conf, then runsudo systemctl enable --now systemd-journal-upload.
Re-run the evaluation yourself
You can repeat the evaluation at any time with the same content and tailoring. It takes about a minute:
sudo oscap xccdf eval \
--tailoring-file /usr/share/doc/sac/cis-l1-tailoring.xml \
--profile xccdf_co.sac_profile_cis-l1_ec2_single \
--results /tmp/cis-check-results.xml --report /tmp/cis-check-report.html \
/usr/share/xml/scap/ssg/content/ssg-debian13-ds.xml > /tmp/cis-check.log 2>&1 echo "oscap exit code: $? (2 = at least one rule did not pass)"
sudo python3 -c "import re,collections; c=collections.Counter(re.findall(r'<result>(\w+)</result>', open('/tmp/cis-check-results.xml').read())); s=sum(c[k] for k in ('pass','fail','error','unknown')); print(dict(sorted(c.items()))); print('pass rate: %.1f%%' % (100.0*c['pass']/s))"Expected output:
oscap exit code: 2 (2 = at least one rule did not pass) {'error': 1, 'fail': 4, 'notapplicable': 33, 'notchecked': 1, 'notselected': 380, 'pass': 358} pass rate: 98.6%On a running instance the result is one rule lower than the shipped evaluation (358 of 363 rather than 359). The extra rule is file_permissions_backup_etc_shadow. The Debian 13 content wants /etc/shadow- at mode 0000, and the image ships it that way. On first boot, cloud-init locks the default user's password (passwd -l admin), and the system then re-creates /etc/shadow- as a backup with the same mode as /etc/shadow (0640 root:shadow). Every later password or account change does the same. The backup holds only the previous /etc/shadow, which has the same mode and, on this image, no usable password hash. If you want the rule to pass, run this after account changes:
sudo chmod 0000 /etc/shadow-Your own report is at /tmp/cis-check-report.html. The content file is ssg-debian13-ds.xml, the Debian 13 data stream from the SCAP Security Guide 0.1.82 release (its sha256 is recorded in cis-l1-summary.json). As you install software and change settings, re-run this to see how your changes affect the result.
Confirm IMDSv2 is required
curl -s -o /dev/null -w 'IMDSv1 request without a token: HTTP %{http_code}\n' http://169.254.169.254/latest/meta-data/instance-id
TOKEN=$(curl -s -X PUT -H 'X-aws-ec2-metadata-token-ttl-seconds: 60' http://169.254.169.254/latest/api/token)
curl -s -H "X-aws-ec2-metadata-token: $TOKEN" -w '\n' http://169.254.169.254/latest/meta-data/placement/regionExpected output (your Region may differ):
IMDSv1 request without a token: HTTP 401 us-east-1A request without a session token is refused with HTTP 401, and the same request with a token works. Scripts and SDKs on the instance must use IMDSv2; every current AWS SDK and the AWS CLI do this automatically.
The host firewall and listening ports
sudo ufw status verbose
sudo ss -tlnpExpected output (process IDs vary):
Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip To Action From -- ------ ---- Anywhere on lo ALLOW IN Anywhere 22/tcp ALLOW IN Anywhere 68/udp ALLOW IN 67/udp
# DHCP client: replies from a DHCP server (port 67) 53 on lo ALLOW IN Anywhere
# systemd-resolved loopback stub 127.0.0.54:53 (lo only) Anywhere (v6) on lo ALLOW IN Anywhere (v6) 22/tcp (v6) ALLOW IN Anywhere (v6) 53 (v6) on lo ALLOW IN Anywhere (v6)
# systemd-resolved loopback stub 127.0.0.54:53 (lo only) State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=810,fd=6)) LISTEN 0 20 127.0.0.1:25 0.0.0.0:* users:(("exim4",pid=1438,fd=5)) LISTEN 0 4096 127.0.0.54:53 0.0.0.0:* users:(("systemd-resolve",pid=325,fd=17)) LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=325,fd=15)) LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=810,fd=7)) LISTEN 0 20 [::1]:25 [::]:* users:(("exim4",pid=1438,fd=6))- Only
sshdlistens on a network address, on port 22. The DNS stub resolver (systemd-resolved, 127.0.0.53 and 127.0.0.54) and the local mail service (exim4, 127.0.0.1 and ::1 port 25) listen on loopback only. systemd-resolved's LLMNR and multicast DNS responders are switched off. - The DHCP rule admits only replies from a DHCP server's port 67 to the instance's DHCP client, which is how the instance keeps its address. The port 53 rule applies to the loopback interface only.
- Outbound traffic is allowed, so the SSM agent, the metadata service, DNS, time sync and package updates work.
Opening a port for your own service takes two steps: allow it in the instance's security group, and allow it in ufw. For example, for a web server on 443, run on the instance:
sudo ufw allow 443/tcpIf a port is open in the security group but not in ufw (or the other way round), the traffic will not arrive.
Time sync and the Systems Manager agent
systemctl is-active chrony amazon-ssm-agent chronyc -n sourcesExpected output (the pool servers and timings vary):
active active MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^- 172.234.37.140 2 6 37 19 -802us[ -814us] +/- 52ms ^- 23.186.168.123 2 6 133 16 +2266us[+2248us] +/- 56ms ^- 107.141.134.168 1 6 67 17 -120us[ -134us] +/- 13ms ^- 23.186.168.125 2 6 37 19 +2300us[+2289us] +/- 56ms ^* 169.254.169.123 3 4 377 4 +3742ns[ -37us] +/- 428usThe ^* marks the source chrony is using: 169.254.169.123, the Amazon Time Sync Service. It is reachable from every instance without internet access, so time stays correct in a private subnet too. The public Debian pool servers are fallbacks. chrony replaces Debian's default systemd-timesyncd because the CIS profile wants exactly one time service and chrony is the one that can use the Amazon Time Sync Service as its preferred source.
The AWS Systems Manager agent is installed from Amazon's own package at its current release (3.3.5538.0 on this build). It is not in the Debian archive, so apt does not update it; Systems Manager can keep it current for you (the AWS-UpdateSSMAgent document, or the Auto update SSM Agent setting in Fleet Manager).
Patch level and automatic updates
The image is fully patched at build time. Check what is pending now:
sudo apt-get update -qq apt list --upgradable 2>/dev/null cat /etc/apt/apt.conf.d/20auto-upgrades systemctl is-enabled unattended-upgrades apt-daily-upgrade.timer uname -rExpected output on an instance launched soon after the image was built (later launches list the updates released since):
Listing... APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Unattended-Upgrade "1"; enabled enabled 6.12.113+deb13-cloud-amd64unattended-upgrades runs daily and installs updates from the Debian and Debian-Security archives automatically. To update everything now, run:
sudo apt-get update && sudo apt-get -y upgradeReboot if a new kernel was installed:
sudo systemctl rebootSecurity settings on the instance
sudo passwd -S root
sudo sshd -T | grep -E '^(permitrootlogin|passwordauthentication|kbdinteractiveauthentication|pubkeyauthentication|x11forwarding|maxauthtries|clientaliveinterval|banner) '
sudo aa-status --enabled && echo "AppArmor: enabled" grep -c nullok /etc/pam.d/common-auth || true systemctl is-system-runningExpected output:
root L 2026-10-21 0 99999 7 -1 maxauthtries 4 clientaliveinterval 300 permitrootlogin no pubkeyauthentication yes passwordauthentication no kbdinteractiveauthentication no x11forwarding no banner /etc/issue.net AppArmor: enabled 0 runningLmeans the root account is locked.sshd -Tprints the settings the SSH server actually uses, after every configuration file is read. The key-only settings andX11Forwarding noare pinned in/etc/ssh/sshd_config.d/00-ec2-key-only.conf, the first drop-in file the server reads, so a later file cannot turn them back on.maxauthtries 4andclientaliveinterval 300come from the CIS profile: SSH allows four authentication attempts per connection and checks idle sessions every five minutes.- AppArmor is enabled with Debian's default policy, as Debian ships it. On this build
sudo aa-statusreports 103 profiles loaded: 4 in enforce mode (chronyd among them), 23 in complain mode and 76 unconfined. The one confined running service is chronyd, in enforce mode. Profiles in complain mode log what they would block without blocking it. 0means PAM no longer accepts an empty password (nullokremoved frompam_unix).runningmeans no service failed during boot.
EC2 Serial Console and recovery. No account on this image has a password, so the serial console cannot log in until you set one. If you want serial console access, set a password for your own user on your running instance (the password is yours and is not on the image):
sudo passwd adminDisk size, swap and file integrity
df -hT /
sudo grep -E 'cc_growpart.*(resized|NOCHANGE)' /var/log/cloud-init.log | tail -1 sudo swapon --noheadings --show | wc -l systemctl is-enabled aidecheck.timer grep -E '^(ExecStart|SuccessExitStatus)=' /etc/systemd/system/aidecheck.serviceExpected output with the default 8 GiB root volume (on a larger volume, Size is larger and the cloud-init line says resized):
Filesystem Type Size Used Avail Use% Mounted on /dev/nvme0n1p1 ext4 7.7G 888M 6.4G 12% / 2026-10-25 01:42:03,833 - cc_growpart.py[DEBUG]: '/' NOCHANGE: no change necessary (/dev/nvme0n1, 1) 0 enabled ExecStart=/usr/bin/aide --config /etc/aide/aide.conf --check SuccessExitStatus=1 2 3 4 5 6 7- Disk layout. The root filesystem is ext4 on partition 1 of the root volume;
/boot/efiis a separate small partition. - Disk growth. cloud-init grows the root partition and filesystem to the volume size on first boot. To grow later, increase the EBS volume size in the console or with
aws ec2 modify-volume, then runsudo growpart /dev/nvme0n1 1 && sudo resize2fs /dev/nvme0n1p1(or reboot). - Swap. The image has no swap. Add a swap file yourself if your workload needs one.
- AIDE. The file integrity database is built from the image's own files. The CIS profile runs
aide --checkat boot and daily at 05:00 (aidecheck.timer); differences are reported in the journal (journalctl -u aidecheck), and a real AIDE error marks the unit failed. On a new instance a check may report files cloud-init creates for that instance (such as its hostname); after you have reviewed the report, refresh the database withsudo aide --config /etc/aide/aide.conf --initand move the new database into place (sudo mv /var/lib/aide/aide.db.new /var/lib/aide/aide.db). Debian's own daily check (dailyaidecheck.timer) also runs, as the_aideaccount, and writes/var/log/aide/aide.log; that is why the AIDE log files belong to_aide.
Install software and add users
The instance uses Debian's own archive (trixie, trixie-updates, trixie-backports and trixie-security, through the mirror list Debian's cloud images ship in /etc/apt/mirrors/):
apt-cache policy nginx | sed -n 1,3p apt-cache policy awscli | sed -n 1,3pExpected output (the versions change over time):
nginx: Installed: (none) Candidate: 1.26.3-3+deb13u9 awscli: Installed: (none) Candidate: 2.23.6-1Install and start software in the usual way, for example sudo apt-get -y install nginx then sudo systemctl enable --now nginx, and open its port in the security group and ufw (Step 8).
Anything the trim removed comes back the same way, for example sudo apt-get -y install vim man-db manpages tcpdump. The AWS CLI is not on this image: install Debian's package with sudo apt-get -y install awscli, or the current version from AWS (the AWS CLI install guide).
To add another administrator, create the account, add it to the sudo group and give it an SSH key:
sudo useradd -m -s /bin/bash -G sudo alice
sudo install -d -m 700 -o alice -g alice /home/alice/.ssh echo "ssh-ed25519 AAAA... alice@laptop" | sudo tee /home/alice/.ssh/authorized_keys
sudo chown alice:alice /home/alice/.ssh/authorized_keys && sudo chmod 600 /home/alice/.ssh/authorized_keysBecause SSH is key-only, a new account needs its key in authorized_keys. The new account has no password, so sudo cannot authenticate it until you give it one with sudo passwd alice. SSH stays key-only; the password is used by sudo. (Password-free sudo is granted only to admin, created by cloud-init, and to ssm-user, the account Session Manager creates for its sessions.)
Common use cases
- A small Debian base for containers, appliances and automation targets, with fewer packages to patch and audit
- A base for workloads that must show CIS Level 1 alignment on Debian, with the evaluation report already on the machine
- Software packaged for Debian 13, with AppArmor enabled from the first boot
- Fleets managed through Systems Manager, with IMDSv2 required from the first boot
- A starting point for your own golden image: add only the packages you need, re-run Step 6, and keep the report with your build
Troubleshooting
SSH says "Too many authentication failures"
The SSH server allows four authentication attempts per connection. If your SSH agent holds several keys, it can use them up before it offers the right one. Tell SSH to offer only the key you name:
ssh -o IdentitiesOnly=yes -i ~/.ssh/my-key-pair.pem admin@<public-ip>Cannot connect via SSH
- Check the instance is running and has passed its status checks.
- Check the security group allows TCP 22 from your current public address.
- Use the user name
admin(notdebian,ec2-userorroot) and the key pair chosen at launch. Password login is disabled, so a wrong key never falls back to a password prompt. - If you changed ufw, make sure 22/tcp is still allowed (
sudo ufw allow 22/tcp). Session Manager (Step 2) still works if SSH is blocked, provided the instance has a Systems Manager instance profile.
A command is not found
The Minimal version leaves out the tools listed in Step 4. Install the one you need, for example sudo apt-get -y install vim (full vim; vi and nano are already there), man-db manpages (manual pages), bind9-host (host), bind9-dnsutils (dig), tcpdump or traceroute. apt-cache search <word> finds the package that provides a command.
My service is running but not reachable
Allow the port in both the security group and ufw (Step 8). sudo ufw status verbose shows the ufw rules; sudo ss -tlnp shows whether the service listens on all addresses or only on loopback.
A tool that uses instance metadata fails
The image requires IMDSv2. Old scripts that call http://169.254.169.254/ without a token get HTTP 401. Update them to request a token first (Step 7), or use the AWS CLI or a current SDK.
Running the daily AIDE check by hand a second time fails
Debian's dailyaidecheck.service (run once a day by dailyaidecheck.timer) allows one start every two hours, and its cache helper dailyaidecheck-buildcache.service one a minute. A second sudo systemctl start dailyaidecheck.service inside that window is refused (start-limit-hit or A dependency job for dailyaidecheck.service failed), and systemctl is-system-running then reports degraded. Nothing is wrong with AIDE: wait, then clear the record with sudo systemctl reset-failed, which returns the state to running.
Package manager issues
Refresh the package lists first:
sudo apt-get update -qq && echo "package lists refreshed"If the archive is unreachable, check that the instance has outbound internet access (a public IP or a NAT gateway) and that DNS resolves:
getent hosts deb.debian.orgImportant notes
Debian is free and open source software. It is a distribution of thousands of packages, each under its own licence (GPL, LGPL, MIT, BSD, Apache 2.0 and others); /usr/share/doc/<package>/copyright shows each package's licence. No subscription or licence key is needed to run this image. The compliance tooling is OpenSCAP (LGPL 2.1 or later) and SCAP Security Guide content (BSD 3-Clause, licence text in /usr/share/doc/sac/scap-security-guide-LICENSE.txt).
Debian 13 is Debian's current stable release and receives security updates from the Debian Security Team through the trixie-security archive this image already uses. This version tracks the Debian 13 release stream, so new point releases arrive as ordinary updates.
The CIS Level 1 Server profile used here is the OpenSCAP profile published in SCAP Security Guide. These images are not CIS Hardened Images and are not certified by the Center for Internet Security. A pass rate measures this image as built; your own changes affect it, which is why the evaluation can be re-run (Step 6).
Debian is a registered trademark of Software in the Public Interest, Inc. CIS is a trademark of the Center for Internet Security. These names are used only to identify the software and the profile. SecureAnyCloud is not affiliated with or endorsed by the Debian Project, Software in the Public Interest or the Center for Internet Security.
Support
For help with this image, contact SecureAnyCloud support:
- Website: secureanycloud.com
- User Guides: secureanycloud.com/guides
- Debian on AWS hub: secureanycloud.com/guides/debian-server-aws
Deploy on AWS
Launch Debian 13 Minimal on AWS with 24/7 support from SecureAnyCloud.
View on Marketplace
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com