Skip to content

About

Applies secure sysctl settings based on a target operating system profile and a custom-defined harde

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

The red tagged gauge close up beside its cream certificate on the bench, its face plain and blank, the wire seal on its adjusting screw unbroken and the deadweight tester soft behind

Day book entry treatment noted first: a ruled day book page, Baloo Chettan 2 in uniform navy on paper.

cha-sysctlhardener

One round brass pressure gauge straight on with a plain blank face carrying a single needle and no markings of any kind, a plain red tag with no markings tied at its rim, the heading plate

A steel calibration bench with a row of brass pressure gauges with plain blank faces beside a deadweight tester, a technician at the end of the bench writing on a cream certificate, one gauge tagged with a plain red tag and its adjusting screw sealed with wire

A tabletop in three depths: the wall still, the day book turning one page at a long interval, and lamplight shifting from one brass button to its neighbour

Validates a YAML or JSON configuration file against a hardening policy written as a JSON schema, and reports every setting that does not comply, with the schema failure for each one. It does not rewrite the configuration file: the report is the output, and a non-compliant configuration exits with status 1 so scripts can gate on it.

Install

git clone https://github.com/ShadowGuard-AI/cha-sysctlhardener

A major divider: a measuring tape unreeling across the full page width

Usage

Carbon copy slip: Report Only, Never Rewritten. Every run reports and leaves the configuration file untouched, and a non compliant configuration exits 1 so scripts can gate on it.

python3 main.py -c CONFIG_FILE -p POLICY_FILE [-n]

A minor divider: a centred short length of measuring tape

Parameters

Carbon copy slip: The Dry Run Changes Nothing. The dry run flag does not change the output or the exit code, as the parameter line below states in full.

  • -h: Show help message and exit
  • -c, --config: Path to the configuration file (YAML or JSON). Required.
  • -p, --policy: Path to the JSON schema policy file. Required.
  • -n, --dry-run: Perform a dry run (show changes without applying them). Every run of this tool is report only, so this flag does not change the output or the exit code: a non-compliant configuration still exits 1 with this flag.

A major divider: a measuring tape unreeling across the full page width

Verified behavior

  • A compliant configuration exits 0.
  • A non-compliant configuration exits 1 and reports the schema failure for each setting.
  • A missing configuration file exits 1.

A minor divider: a centred short length of measuring tape

License

See LICENSE.

About

Applies secure sysctl settings based on a target operating system profile and a custom-defined harde

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages