
The part of AWS your CSPM does not grade: ISO 27001 controls for Amazon Lightsail
Security Hub has no Lightsail controls. Ten read-only checks for backups, firewalls, IMDSv2 and certificates, and what they found on my own account, including a forgotten region.
Series: From AWS findings to ISO 27001 evidence (2 articles)
- 2The part of AWS your CSPM does not grade: ISO 27001 controls for Amazon Lightsail This article
Part 2 of the series "From AWS findings to ISO 27001 evidence"
Most ISO 27001 guides for AWS are written for big environments: EC2, VPCs, AWS Config, Security Hub, a landing zone. That's fine if you have those. A lot of us don't.
My own AWS use is mostly Amazon Lightsail. It's simple, the price is fixed, and for small projects and test machines it's all I need. Lots of small companies run real workloads on it too.
Here's the thing, though. If a Lightsail server holds company data, it's in scope for your ISMS. The auditor will ask about backups, access, logging and encryption, exactly like they would for EC2. "It's just Lightsail" is not an answer.
In part 1 I wrote that scope is the first place audit evidence goes wrong. Lightsail is a good example. The Security Hub CSPM controls reference has no Lightsail controls, so a Security Hub export says nothing about these servers. AWS Config started recording Lightsail instances in September 2026, next to buckets, disks, certificates and more. That's useful for history. But Config records what exists, and its managed rules for Lightsail only cover buckets (public access overrides, versioning) and tags. Nothing there tells you whether SSH is open to the internet, whether snapshots are on, or whether an instance still allows IMDSv1. And Config charges per recorded configuration item, which matters on a small budget.
So I added ten Lightsail checks to my evidence collector. In this part I go through each one: what it checks, which Annex A control it supports, why it matters, and how to fix it. And I'll show you what happened when I ran it on my own account, because the result was a little embarrassing.
Running it
pip install "git+https://github.com/larcz94/ISO27001-evidence-collector@v1.1.0"
iso27001-evidence collect --source lightsail --region eu-central-1iso27001-evidence collect --source lightsail --all-regionsLightsail resources live in regions, so you either name the regions you use or check all of them with
--all-regions . Before an audit I'd always pick --all-regions . The whole point is to find the instance someone started somewhere else and forgot about.You need an IAM user or role with the read-only policy from
policies/lightsail-readonly-policy.json . It allows sts:GetCallerIdentity and nine lightsail:Get* actions, nothing else. The tool can't change anything, and these API calls don't cost anything.Every failed check ends up in the report as a finding, sorted worst first, with the resources that failed and a suggested fix:

The ten checks
Annex A control | Check | Question | Severity |
|---|---|---|---|
A.8.13 Information backup | instance.auto_snapshots | Do instances have automatic snapshots? | Medium |
A.8.13 Information backup | disk.auto_snapshots | Do extra disks have automatic snapshots? | Medium |
A.8.13, A.8.20, A.8.3 | database.backup_and_exposure | Are databases backed up and private? | High |
A.8.20 Networks security | instance.admin_ports_restricted | Is SSH or RDP open to the internet? | High |
A.8.3 Information access restriction | bucket.public_access | Are buckets private? | High |
A.8.15 Logging | bucket.access_logging | Do buckets write access logs? | Low |
A.8.9 Configuration management | instance.imdsv2_required | Do instances require IMDSv2? | Medium |
A.8.8 Technical vulnerabilities | instance.blueprint_supported | Is the OS image still offered? | Medium |
A.8.24 Use of cryptography | loadbalancer.https_only | Do load balancers force HTTPS? | Medium |
A.8.24 Use of cryptography | certificate.expiry | Is a certificate about to expire? | Medium |
A word on severity: it's a default rating that sorts the findings so the worst ones come first. It's not a risk assessment of your setup. Only you can decide what a finding really means for you.
Backups (A.8.13)
Instances should have automatic snapshots (
lightsail.instance.auto_snapshots ). Lightsail can take a daily snapshot of an instance and keep the last seven. You just have to turn it on: open the instance, go to the Snapshots tab and enable automatic snapshots.Block storage disks should have automatic snapshots (
lightsail.disk.auto_snapshots ). This one is easy to miss. An extra disk you attach to an instance is its own resource with its own snapshot setting. People turn on snapshots for the instance and forget the data disk, and the data disk is usually where the important data is.For A.8.13 the auditor will also want a backup policy, a retention period, and proof of at least one restore test. A snapshot you've never restored is a hope, not a backup.
Network and access (A.8.20, A.8.3)
SSH and RDP should not be open to the internet (
lightsail.instance.admin_ports_restricted ). New Linux instances on Lightsail come with SSH (port 22) open to everyone. The check fails if port 22 or 3389 is open to 0.0.0.0/0 or ::/0 , and it also catches wide ranges like "all ports", which include them.To fix it, open the instance, go to the Networking tab, and restrict the SSH rule to your own IP address, or allow only the Lightsail browser SSH. Then do the same in the IPv6 firewall. Keep reading to see why I say that.
Buckets should be private (
lightsail.bucket.public_access ). A bucket fails if it's public, or if it's private but still lets single objects be made public. If you host a public website from a bucket on purpose, that's a decision, not a bug. Part 3 is about how to record it properly.Databases should be backed up and not public (
lightsail.database.backup_and_exposure ). A managed database fails if automatic backups are off or if public mode is on. Your Lightsail instances can reach the database privately, so public mode is rarely needed.Logging (A.8.15)
Buckets should have access logging (
lightsail.bucket.access_logging ). Access logs record who read or wrote which object. If data ever leaks from a bucket, they're how you find out what happened. Turn them on and send them to a second, private bucket.Configuration and vulnerabilities (A.8.9, A.8.8)
Instances should require IMDSv2 (
lightsail.instance.imdsv2_required ). Every instance has a metadata service that hands out temporary credentials. The old version 1 answers any plain request, so a server-side request forgery (SSRF) bug in your web app can be used to steal those credentials. Version 2 needs a session token first, which blocks most of these attacks.aws lightsail update-instance-metadata-options \ --instance-name web-1 --http-tokens requiredTest your application afterwards. Very old SDKs may still expect version 1.
Instances should run a supported OS image (
lightsail.instance.blueprint_supported ). Lightsail calls its OS images "blueprints". When AWS retires a blueprint, it's usually because that OS version is close to or past its end of life. This check doesn't prove a server is unpatched. It's a signal to go and look. For A.8.8 the auditor will also ask for your patching procedure and records.Cryptography (A.8.24)
Load balancers should enforce HTTPS (
lightsail.loadbalancer.https_only ). A load balancer should have a TLS certificate on port 443 and redirect HTTP to HTTPS. The report also records the TLS policy name, so you can show which TLS versions are allowed.Certificates should not be about to expire (
lightsail.certificate.expiry ). This fails if an issued certificate expires within 30 days. Lightsail renews certificates that are in use and still validated, but renewal quietly fails if someone removes the DNS validation record. Usually you find out when the site breaks. This check tells you a month earlier.What it found on my own account
So, I ran it on my own account. I thought I had one small Lightsail instance, a test machine in Paris (eu-west-3), and I honestly expected a mostly clean report.
The first thing that happened was an error. I had created the read-only IAM policy a few days earlier, before I added the
--all-regions feature, so the user didn't have lightsail:GetRegions yet. The tool stopped and told me exactly that, including which permission was missing. I updated the policy and ran it again. That's how a tool should fail: loudly, and with a message you can act on.Then the real result for Paris (run on 2026-11-24, N/A lines hidden):
FAIL eu-west-3 lightsail.instance.admin_ports_restricted 1 admin port(s) open to the internet across 1 instance(s)FAIL eu-west-3 lightsail.instance.auto_snapshots 0 of 1 instances have automatic snapshots enabledPASS eu-west-3 lightsail.instance.blueprint_supported All 1 instances run a blueprint (OS image) that Lightsail still offersPASS eu-west-3 lightsail.instance.imdsv2_required 1 of 1 instances require IMDSv2Two findings, and both are Lightsail defaults that I just never changed.
SSH is open to the whole internet, on IPv4 and on IPv6. Lightsail shows the IPv4 and IPv6 firewalls separately, and the IPv6 one is easy to overlook. This is exactly why I prefer a check that reads the real firewall rules over my own memory of what I configured.
Automatic snapshots are off. For this particular instance, I decided that's fine. It's a test machine with no data, and I can rebuild it in minutes. But "I decided that's fine" isn't evidence. I'll show how to record that decision in part 3.
The SSH fix is small: restrict the rule in the instance's Networking tab, in both firewalls. Until it's done, the finding stays in every report. That's the point of evidence: it shows the gap as it is, not as I'd like it to be.
The region I wasn't looking at
Paris was what I expected. The next part of the output was not:
FAIL ap-southeast-1 lightsail.instance.admin_ports_restricted 5 admin port(s) open to the internet across 2 instance(s)FAIL ap-southeast-1 lightsail.instance.auto_snapshots 1 of 2 instances have automatic snapshots enabledFAIL ap-southeast-1 lightsail.instance.blueprint_supported 1 of 2 instances run a retired blueprint (OS image)FAIL ap-southeast-1 lightsail.instance.imdsv2_required 1 of 2 instances require IMDSv2Two instances in Singapore (ap-southeast-1), in my own account, that I had forgotten about. Between them: five admin ports open to the whole internet, one running an OS image that Lightsail no longer offers, one still allowing the old metadata service (IMDSv1), and one without snapshots.
I never open the Singapore region in the console. So for me, these servers didn't exist. If an auditor had asked me "which servers do you run on AWS?", my honest answer would have been wrong. That is the "where did you look?" question from part 1, and I failed it on my own account.
This is the strongest argument I know for
--all-regions . Not because it finds more problems, but because it finds the problems in the places you don't look. Those tend to be the old ones, with old defaults and old OS images, that nobody patches because nobody remembers them.Until they are fixed or removed, they stay at the top of every report, in "Findings to fix", where nobody can forget them again.
The tool had a bug too
The first real
--all-regions run also showed a problem in my own code. GetRegions lists every region where Lightsail exists, including opt-in regions like Hong Kong (ap-east-1). My account has never enabled those, and every call there fails with UnrecognizedClientException , as if the credentials were wrong. So the report had 40 ERROR lines for four regions I can't even use.That was the small problem. The bigger one: ap-east-1 is first in the sorted list, so the lookup of the account ID failed there, and the whole report said the account was "unknown". An evidence report that can't say which account it covers fails the auditor's second question before anyone reads a finding.
The fix: a region where every call fails only for that reason is skipped, the account lookup moves on to the next region, and the report lists those regions as "not checked, region not enabled". That last part matters. "We looked and found nothing" and "we could not look" are different evidence, and a report must never mix them up. If you name a region yourself with
--region , it still shows an ERROR, because then you asked for it on purpose.Every new AWS account has these opt-in regions switched off, so anyone who ran
--all-regions would have hit this. My tests used fake regions that all worked. Only a real account showed it.What's next
I'd like to add checks for unused static IPs and for Lightsail container services. If you run Lightsail and there's a check you'd want, tell me in the comments or open an issue.
In part 3: what to do with a finding you've decided to live with, like my snapshots, so the report stays honest and the exception doesn't quietly become permanent.
Series: From AWS findings to ISO 27001 evidence (2 articles)
- 2The part of AWS your CSPM does not grade: ISO 27001 controls for Amazon Lightsail This article
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article