On this pageThree kinds of weakness
Vulnerabilities in a cloud setup come in three kinds: flaws in software, weaknesses in configuration, and secrets left where someone can find them. A one-off scan finds a few of each. A loop finds them continuously: know what you have, look for weaknesses, decide what matters first, fix it and check the fix. This guide builds that loop for a small fleet of servers and the services around them, with free tools and a ranking policy you can adapt.
Three kinds of weakness
| Kind | Examples | How you find it |
|---|---|---|
| Software flaws | An outdated OpenSSL, a vulnerable CMS plugin, an old container base image | Package advisories, image and dependency scanners |
| Misconfiguration | A database listening on a public address, a default admin password, a firewall rule open to everyone | Configuration audits, checks of your own public addresses from outside |
| Exposed secrets | API tokens in Git history, passwords in CI logs or chat | Secret scanners, regular reviews of issued tokens |
Software flaws get the attention because they have identifiers, CVE numbers, and scores. The other two rows cause just as much damage and have no number to sort by, so the loop has to cover them on purpose.
Step 1: know what you have
You cannot patch a server you forgot. Cybersecurity asset management means keeping a current list of everything that can be attacked or can leak data, with an owner for each item:
- Servers and addresses, from your provider's console or API.
- Domains and DNS records, exported from each DNS host. Records that point at addresses or services you no longer control are a classic route to subdomain takeover.
- Certificates. Certificate transparency logs list every certificate issued for your domains, which reveals host names people set up and forgot.
- Containers, images and code repositories, with the dependencies they pull in.
- SaaS applications and the third-party apps granted access to them.
- Credentials: API tokens, SSH keys and service accounts.
For each asset, record its owner, purpose, exposure (internet-facing or internal), the kind of data it handles, how it gets patched and when someone last reviewed it. A spreadsheet works for twenty assets; a CMDB such as NetBox or GLPI earns its keep beyond that. Generate the list rather than typing it where you can. On CloudSat, a read-only API token lists every server with its addresses:
curl -s https://cloudsat.io/api/v1/servers -H "Authorization: Bearer $CLOUDSAT_TOKEN" \
| jq -r '.servers[] | [.id, .label, .ipv4, .ipv6] | @tsv'
curl -s 'https://crt.sh/?q=%25.example.com&output=json' | jq -r '.[].name_value' | sort -u
The second command asks the public crt.sh service for every certificate name logged under your domain. Run it for domains you own; anything you do not recognize goes on the list with a question mark until someone claims it.
Step 2: find the weaknesses
Operating system packages
Distributions publish security advisories and mark the updates that fix them:
apt list --upgradable # Debian and Ubuntu: everything with a newer version
pro security-status # Ubuntu: which packages have security coverage
sudo dnf updateinfo list --security # RHEL, AlmaLinux, Rocky Linux: pending security advisories
An installed update is not always an active one. A new kernel or C library takes effect after a restart. Ubuntu creates /var/run/reboot-required when one is due, needrestart lists services still running old libraries on Debian and Ubuntu, and needs-restarting -r answers the same question on the RHEL family.
Containers and application dependencies
Scan images when you build them and again on a schedule, because new CVEs appear for old images. Trivy and Grype both read an image and report known vulnerable packages, for example grype registry.example.com/app:1.4.2. For application code, use the ecosystem's own checks: npm audit, pip-audit, composer audit or govulncheck ./.... Wiring these into CI is covered in security checks for your pipeline.
Configuration and exposure
sudo lynis audit system lists weak host settings in a few minutes. For the outside view, scan your own public addresses from a machine outside your network and compare the result with what you meant to publish:
nmap -Pn --top-ports 1000 203.0.113.10
Scan only addresses you own or are authorized to test. Scanning systems you do not own breaks most providers' acceptable use rules and, in many places, the law. Greenbone's community edition of OpenVAS goes further, with authenticated checks against your own hosts.
Secrets
Run a secret scanner such as gitleaks or TruffleHog over every repository, history included, and review the API tokens and SSH keys each system has issued. A secret that leaked has to be rotated, not just deleted from the file.
Step 3: rank what you found
A scan of a few servers can return hundreds of findings. Three public sources help sort them:
- CVSS scores how severe a flaw is, from 0 to 10, assuming someone exploits it. Version 4.0 has been the current standard since late 2023. Severity is not likelihood.
- EPSS, published daily by FIRST, estimates the probability that a CVE will be exploited in the wild in the next 30 days.
- The CISA Known Exploited Vulnerabilities catalog lists flaws with confirmed exploitation. If a finding is on it, someone is already using it.
Combine them with what only you know: whether the asset faces the internet and what data it holds. An example policy to adapt:
| Priority | Condition | Fix within |
|---|---|---|
| P1 | In the KEV catalog or otherwise known to be exploited, on an internet-facing asset | 2 days |
| P2 | Critical or high severity on an internet-facing asset, or a high EPSS score | 7 days |
| P3 | High severity on an internal-only asset | 30 days |
| P4 | Everything else | The next maintenance window |
Misconfigurations and leaked secrets on internet-facing assets belong in P1 even without a CVE number. An open database needs no exploit.
Step 4: fix
- Automate security updates.
unattended-upgradeson Debian and Ubuntu;dnf-automaticon the RHEL family, withupgrade_type = securityin/etc/dnf/automatic.confandsudo systemctl enable --now dnf-automatic.timer. - Schedule restarts for kernel and library updates, or use live patching where your distribution offers it.
- Rebuild containers on a fresh base image and redeploy them. Patching a running container is lost at the next restart.
- Update dependencies through automated pull requests, such as Renovate or Dependabot, with tests that must pass.
- Protect yourself before risky upgrades. On CloudSat, take a snapshot first, so a bad update means a restore rather than a rebuild.
- When no fix exists, reduce exposure: restrict access with the firewall, switch the vulnerable feature off, or add a targeted rule to a web application firewall. Record it as an exception with an owner and an expiry date.
Step 5: verify and keep score
Close a finding only when a new scan confirms the fix. Then track a few numbers each month: open findings by priority, how long P1 and P2 items stayed open, assets without an owner, and exceptions past their expiry date. Rising numbers are not failure. They show where the loop needs more time or more automation, which is the conversation a security program should have, as outlined in a cloud security program for small teams.
FAQ
How often should we scan?
Check packages daily with automation, scan images at build time and weekly while they run, check your external exposure weekly and after every network change, and review the whole list monthly.
Is a CVSS 9.8 always an emergency?
No. If the vulnerable component is not installed in a reachable way, or the asset is internal and isolated, it can wait for its turn. A medium-severity flaw on the KEV list on your public web server cannot.
Do we need a commercial scanner?
Not for a small fleet. The open-source tools above cover packages, images, dependencies and exposure. Commercial platforms add consolidated reporting and compliance evidence, which matter more as you grow.
What about vulnerabilities with no patch yet?
Treat them like any finding without a fix: limit who can reach the component, watch its logs closely and apply the vendor's mitigation advice until a patch ships.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




