cissors

package module
v0.0.0-...-f6f603d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

README

CISsors

CISsors is a tool for converting CIS benchmark rules from a PDF to a YAML format.

This can be quite useful if you need further processing of these rules in other tools and scripts.

Installation

go get -u github.com/xornivore/cissors/...

Usage

cissors --help
usage: cissors [<flags>] <file>

Flags:
      --help                 Show context-sensitive help (also try --help-long and --help-man).
  -v, --verbose              Verbose mode.
  -o, --out=OUT              Output to file.
      --id-prefix=ID-PREFIX  ID prefix for rules.

Example

cissors CIS_Kubernetes_Benchmark_v1.5.0.pdf -o cis-kubernetes-1.5.0-parsed.yaml
✂️  You are now running with CISsors

✂️  Skillfully cutting your CIS benchmark️

✂️  Found 120 rules

✂️  Done extracting rules

✂️️️  All done! Enjoy your YAML masterpiece!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	ID   string `yaml:"id" json:"id"`
	Name string `yaml:"name" json:"name"`
}

Location describes location of the Rule in a CIS benchmark

type Rule

type Rule struct {
	ID       string            `yaml:"id" json:"id"`
	Name     string            `yaml:"name" json:"name"`
	RuleType RuleType          `yaml:"rule_type" json:"rule_type"`
	Location []Location        `yaml:"location,omitempty" json:"location,omitempty"`
	Sections map[string]string `yaml:"-,inline" json:"sections"`
}

Rule describes a CIS benchmark rule

type RuleType

type RuleType string
const (
	Scored    RuleType = "Scored"
	NotScored RuleType = "Not Scored"
	Manual    RuleType = "Manual"
	Automated RuleType = "Automated"
)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL