facebookincubator / TTPForge

The TTPForge is a Cybersecurity Framework for developing, automating, and executing attacker Tactics, Techniques, and Procedures (TTPs).
MIT License
337 stars 33 forks source link

Add checks package for runtime condition verification #423

Closed d3sch41n closed 11 months ago

d3sch41n commented 11 months ago

Summary: This feature will power verification of:

I'm adding it as an isolated package for now, in a subsequent diff I will hook it into step.go like this:

// CommonStepFields contains the fields
// common to every type of step (such as Name).
// It centralizes validation to simplify the code
type CommonStepFields struct {
    Name        string         `yaml:"name,omitempty"`
    Description string         `yaml:"description,omitempty"`
    Checks      []checks.Check `yaml:"checks,omitempty"`

Note that this initial diff only contains one type of check (path existence) but others will be added shortly - wanted to keep it small to get comments on the overall structure first.

Differential Revision: D51428503

facebook-github-bot commented 11 months ago

This pull request was exported from Phabricator. Differential Revision: D51428503

facebook-github-bot commented 11 months ago

This pull request was exported from Phabricator. Differential Revision: D51428503

d3sch41n commented 11 months ago

Orphan PR - already merged by ShipIt