Skip to content

Security posture

The posture analyzers connect to the target of a probe and report how it is configured as seen from the client side, such as the certificate and TLS versions it accepts, the security headers it sends, the OAuth2 flows it advertises, the mail authentication records its domain publishes and what its mail server allows. Each one produces a structured view of what it read plus findings for the weaknesses.

AnalyzerProtocolsTier
TLS postureHTTP, SMTP, IMAP, LDAP, FTP, Redis, MySQL, PostgreSQL, SQL Server, MongoDBEngineering
HTTP postureHTTPEngineering
OAuth2 postureHTTPSecurity
DNS postureDNSSecurity
SMTP postureSMTPSecurity

Every posture analyzer reads the target with the probe’s host and port. Three of them send more than a plain read. DNS posture attempts a zone transfer, SMTP posture tries one relay transaction and OAuth2 posture, once a client id is set, sends one authorization request. The section for each analyzer lists what it sends, so you know what the target will log.

TLS posture connects to the probe’s port, reaches TLS the way the protocol does, performs the handshake with the probe’s host as the server name and reads what was negotiated. It accepts any certificate so that a broken chain can still be inspected. It sends no application data over TLS.

It then asks the server what else it would accept. Modern TLS clients refuse SSLv3, TLS 1.0, TLS 1.1 and the weak cipher suites outright, so a normal handshake can never show that a server still offers them. TLS posture sends its own TLS hello for each legacy version and for the weak TLS 1.2 suites (NULL, anonymous, export, RC2, RC4, DES and 3DES) and reads which ones the server answers. Only the hello is exchanged: no key exchange completes and the connection is closed once the server has answered. A server that refuses a modern handshake but accepts a legacy one is reported as Only legacy TLS is offered instead of TLS handshake failed.

Most of these protocols do not start with TLS on their usual port, so the analyzer speaks each protocol’s own upgrade before the handshake:

ProtocolHow TLS is reached
SMTP, IMAPSTARTTLS after the greeting, or TLS from the first byte on 465 and 993
FTPAUTH TLS after the greeting, or TLS from the first byte on 990
LDAPThe StartTLS extended operation, or TLS from the first byte on 636 and 3269
PostgreSQLAn SSLRequest
MySQLThe SSL request after the server’s handshake packet
SQL ServerEncryption negotiated in PRELOGIN, or TLS from the first byte when the probe’s TLS mode is strict (TDS 8)
HTTP, Redis, MongoDBTLS from the first byte

The probe’s own TLS setting decides the path when it names one:

  • an implicit TLS mode means TLS from the first byte
  • a STARTTLS or explicit mode means the upgrade
  • any TLS mode on PostgreSQL, MySQL or SQL Server means their in-protocol negotiation

When the probe names none, the port decides (465, 993, 990, 636 and 3269 get TLS from the first byte, any other port gets the upgrade). When the port decided and the server there answers otherwise (plaintext on 465, say, or TLS from the first byte on a port that normally upgrades), the other path is tried once. The legacy version and weak suite probing described above goes through the same path. The path taken and a transcript of the exchange are recorded with the snapshot, where an agent reading the analysis sees them. The Analysis view does not show them.

When a server does not offer TLS on the port, the analysis reports TLS upgrade not offered, TLS upgrade refused or TLS not offered as a warning. On HTTP, Redis and MongoDB, where TLS can only come first, a port that answers the protocol in plaintext gets TLS not offered instead of a failed handshake.

TLS posture: negotiated protocol and cipher, hostname match and the certificate chain

The view shows the negotiated Protocol and Cipher, whether the Hostname matches the certificate and the Certificate chain, leaf first. For each certificate it gives the subject with a Leaf or Self-signed marker and the days until it expires (or since it expired), then its Issuer, Key, Signature, validity dates, SANs and SHA-256 fingerprint.

FindingSeverityWhen
Certificate expiredCriticalThe leaf certificate’s expiry is in the past
Certificate expiring soonWarningThe leaf expires within 30 days
Self-signed certificateCriticalThe leaf is self-signed on 443, 465, 636, 990, 993 or 995, where a publicly trusted certificate is expected
Self-signed certificateWarningThe leaf is self-signed on any other port
Hostname does not match the certificateWarningNeither a SAN nor the CN covers the host (a single-label wildcard counts)
Weak TLS versionCriticalThe server accepts SSLv3, TLS 1.0 or TLS 1.1
Weak cipher suiteCriticalThe server accepts a NULL, anonymous, export, RC2, RC4, DES or 3DES suite, or the negotiated suite uses MD5
Only legacy TLS is offeredCriticalThe server refused a TLS 1.2 or 1.3 handshake and accepts only older versions
Weak key sizeWarningThe leaf has an RSA key under 2048 bits
TLS upgrade not offeredWarningThe SMTP, IMAP, LDAP or FTP server does not offer STARTTLS, StartTLS or AUTH TLS
TLS upgrade refusedWarningThe server knows the upgrade command and declined it
TLS not offeredWarningPostgreSQL, MySQL or SQL Server declined TLS in its own negotiation, or an HTTP, Redis or MongoDB port answered in plaintext
Client certificate requiredInfoThe server demanded a client certificate and ended the handshake without one (its chain is still inspected)
Client certificate requestedInfoThe server asked for a client certificate (on TLS 1.3 a demand and a request cannot be told apart, so this is what it reports)
TLS handshake failedErrorThe TLS handshake did not complete
Could not connectErrorThe TCP connection failed
Connection lost during the TLS upgradeErrorThe connection closed or timed out during the upgrade exchange
Unexpected replyErrorWhat answered on the port did not speak the probe’s protocol

The certificate chain is not checked against a CA store or for revocation. Expiry is judged on the leaf only. The weak suites are probed on TLS 1.2, so a strong suite list on TLS 1.2 says nothing about the legacy versions, which are reported separately.

Generate assertions on a TLS analysis pins the leaf’s expiry date, so a renewed certificate fails that assertion. If the status you accepted was OK, the status assertion catches a certificate nobody renews once it comes within 30 days of expiry.

HTTP posture requests a page of the probe’s site with GET, on the probe’s scheme, host and port. The page is / unless you set a Path under Analyzer options, so a login page or an API base can be checked instead of the root. It follows redirects itself for up to ten hops so it can record each one, then sends one OPTIONS to the final URL to read the Allow header. It sends no credentials, no cookies and no custom headers from the probe. An HTTPS site is checked with normal certificate validation, so an untrusted certificate stops the analysis with Could not reach the endpoint.

HTTP posture: redirect chain, security headers, cookies and allowed methods

The view shows the final URL and status, the Redirect chain, the Security headers present (with their values) and missing, each Cookie with its Secure, HttpOnly and SameSite attributes and the Allowed methods.

FindingSeverityWhen
Missing Strict-Transport-Security, Content-Security-Policy, X-Frame-Options or X-Content-Type-OptionsWarningThe final response does not set the header
Missing Referrer-Policy or Permissions-PolicyInfoThe final response does not set the header
Cookie is missing an attributeWarningA cookie lacks Secure, HttpOnly or SameSite
Risky methods advertisedWarningAllow lists TRACE, TRACK or CONNECT
Redirect downgrades to HTTPWarningA hop in the redirect chain goes from https to http
Could not reach the endpointErrorThe request failed

Headers and cookies are judged on the final response only. A missing Strict-Transport-Security header is reported on a plain http:// site as well.

OAuth2 posture reads the OpenID discovery document at /.well-known/openid-configuration on the root of the probe’s host and port and reports the authorization server’s Authorization endpoint, Token endpoint, Grant types, PKCE challenge methods, Scopes and Token endpoint auth methods.

An issuer that lives under a path (for example /realms/<name>) is not found at the root of the host, so the analysis reports No OpenID discovery document.

OAuth2 posture: endpoints, advertised grant types and PKCE methods

FindingSeverityWhen
Resource Owner Password flow offeredWarninggrant_types_supported contains password
Implicit flow offeredWarningThe implicit grant or the token response type is advertised
PKCE “plain” challenge method allowedWarningcode_challenge_methods_supported contains plain
PKCE S256 not advertisedWarningThe challenge method list is present and has no S256
Public clients allowed at the token endpointInfotoken_endpoint_auth_methods_supported contains none
PKCE is not enforcedWarningThe server issued a code for a request with no code challenge
PKCE enforcement not testedInfoNo client id is set, or the server’s answer did not settle it
No OpenID discovery documentErrorThe discovery URL answered with an HTTP error
Could not read the discovery documentErrorThe request or the JSON failed

Checking that the server refuses an authorization request without a code challenge needs a client id. Set one as Client id under Analyzer options and the next refresh sends one GET to the authorization endpoint with response_type=code, that client id, redirect_uri=http://localhost/cb and no code challenge. A redirect carrying a code means PKCE is not enforced. A redirect carrying an error, or any 4xx or 5xx answer, counts as enforced. A login page or any other answer leaves it not tested. The code, if one is issued, is never redeemed.

A server that rejects the request because http://localhost/cb is not a registered redirect URI also answers with an error, which reads as enforced. Use a client whose registered redirect URIs accept it, or test PKCE as a chain of HTTP steps with your real redirect URI.

DNS posture checks the mail and zone security of a domain. The server it asks is the probe’s host and port and the zone is the probe’s first query name, unless you set a Zone under Analyzer options. Point the probe at the zone’s authoritative server. A resolver answers the record queries too but refuses the zone transfer.

It sends five queries:

  • TXT at the apex, for the SPF record
  • TXT at _dmarc.<zone>, for the DMARC record
  • TXT at <selector>._domainkey.<zone>, for a DKIM record on the DKIM selector set under Analyzer options, or default when none is set
  • DNSKEY at the apex, to see whether the zone is signed
  • an AXFR zone transfer over TCP

The zone transfer is a real transfer attempt, which a monitored DNS server will log. Run DNS posture against servers you are allowed to test.

DNS posture: zone transfer, DNSSEC, SPF, DMARC and DKIM rows

The view is one row each for Zone transfer (Allowed with the record count, Refused or Not determined), DNSSEC (Signed or Not signed), SPF (Hard fail, Soft fail, Pass all, Present or Missing, with the record), DMARC (Enforced, Monitor only, Present or Missing, with the record) and DKIM (Present or Not found, with the selector name).

FindingSeverityWhen
Zone transfer (AXFR) allowedWarningThe server answered the transfer with records
Zone is not DNSSEC-signedWarningNo DNSKEY at the apex
No SPF recordWarningNo v=spf1 record at the apex
SPF does not hard-failWarningThe record ends in ~all or ?all
SPF passes every senderWarningThe record ends in +all
No DMARC recordWarningNo v=DMARC1 record at _dmarc
DMARC policy is p=noneWarningThe policy monitors and enforces nothing
No DKIM record for the checked selectorInfoNo v=DKIM1 record at <selector>._domainkey
Could not reach the resolverErrorThe first query failed at the transport level

DNSSEC is reported from the presence of a DNSKEY record; signatures and the chain of trust are not validated. DKIM is checked on one selector, so a domain that signs with a selector you have not set reports No DKIM record for the checked selector as information rather than a warning. A server that refuses to answer for the zone makes every record read as missing, so when every row comes back empty, check that the probe points at a server that answers for the zone.

SMTP posture talks to the mail server on the probe’s port (with implicit TLS when the probe uses it) and goes through these steps:

  1. read the banner
  2. EHLO virtuprobe-posture.invalid
  3. MAIL FROM:<[email protected]>
  4. RCPT TO:<[email protected]>, only if the server accepted MAIL FROM
  5. RSET and QUIT

It never sends DATA, so no message is ever delivered. It does not authenticate and does not upgrade with STARTTLS, so it reports what the server offers before any upgrade. The MAIL FROM and RCPT TO pair is one real unauthenticated relay attempt, which the server will log.

SMTP posture: relay result, STARTTLS and AUTH offered and the EHLO capabilities

The view shows the relay result (Open relay or Relay refused), the banner and whether STARTTLS is offered (or the session is implicit TLS). It also lists the AUTH mechanisms (noting whether they are advertised before STARTTLS) and every EHLO capability.

FindingSeverityWhen
Open relayErrorThe server accepted the unauthenticated recipient at an external domain
STARTTLS not offeredWarningThe session is plaintext and EHLO lists no STARTTLS
AUTH offered on a cleartext sessionWarningPLAIN or LOGIN is advertised before any TLS
No SMTP AUTH offeredInfoEHLO lists no AUTH mechanism
Could not read the serverErrorThe connection opened but the banner timed out, was reset or could not be read (a failed implicit TLS handshake included)
EHLO failedErrorThe reply to EHLO timed out, was reset or could not be read
Could not reach the serverErrorThe connection could not be opened (refused, an unknown host or the connect timeout)

The relay test uses an .invalid recipient domain. A server that accepts every recipient without looking at the domain (a mail capture server used for testing is the usual example) reports as an open relay, which for that server is true.