testssl.sh icon indicating copy to clipboard operation
testssl.sh copied to clipboard

[Feature request] Policy Scan Mode / expectation profiles / compliance template

Open dreizehnutters opened this issue 1 year ago • 5 comments

Background: The tool ssh-audit provides a beneficial feature that allows scanning a target against a specified policy file. This functionality enables users to verify if the server's SSH configuration aligns with predetermined compliance standards or security best practices.

Feature request: I propose that a similar feature be integrated into testssl.sh, thus equipping it with the ability to assess if a given host adheres to defined constraints. This proposed feature could improve the tool by offering:

  • Predefined policy templates (e.g., PCI DSS, NIST, custom organizational policies) that users can select to audit against.
  • Customizable policy definition where users can specify the criteria and rules for their unique environment.
  • An automated way to ensure that SSL/TLS configurations meet specific security compliance requirements.

dreizehnutters avatar Jul 12 '24 13:07 dreizehnutters

See #333, #1085, #1108.

dcooper16 avatar Jul 12 '24 16:07 dcooper16

TL;DR: its not a novel idea, but implementation is hard ?

dreizehnutters avatar Jul 13 '24 10:07 dreizehnutters

@dreizehnutters : some one has just to do that. Description of todos is e.g. here

drwetter avatar May 20 '25 09:05 drwetter

@dreizehnutters : some one has just to do that. Description of todos is e.g. here

If the code base wasn't so daunting - I would try to work on it

dreizehnutters avatar May 20 '25 10:05 dreizehnutters

I updated the description mentioning above in #1108. Don't know whether that helps. 2B seems to be (now) the best approach to me.

If you or anyone else wants to give it a shot, try first testssl.sh --csv <file> -p <target> and provide a piece of code whether the (CSV) output shows at least TLS 1.2. Then we need to work on an idea how a compliance template / expectation profile could look like. Then somehow we have a PoC for the protocol section.

drwetter avatar May 20 '25 10:05 drwetter