aws-rule-standards-mappings
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

AWS Rule Standard Mappings

This repository facilities the collection, storage, and versioning of security and compliance standards and their associations to AWS config rules. This is done very simply by scraping data from the AWS Developer Guide Documentation for AWS config. Several standards for operational best practices are annotated in the documentation under Conformance Packs -> Conformance Pack Sample Templates. Each page references a standard and several of them contain a table which provides this association as well as remediation guidance.

Mappings

Security and compliance standards and mappings to AWS Config Rules are stored in the mappings directory. Each JSON file represents a page from the AWS documentation and is named accordingly. The file includes a Javascript object with some details about the standard as well as all of the mappings as pulled from the table.

If a page does not have a table a file will not exist.

Getting Started

This repository provides an NPM package and can be used as a Node JS module.

Add the package as a dependency:

npm install --save aws-rule-standards-mappings

The standards with associated controls as well as all of the controls with the name of the associated standard and AWS documentation URL (StandardName and StandardDocumentation) are provided for direct consumptiom

const awsrsm = require('aws-rule-standards-mappings');
awsrsm.standards.map(standard => console.log(standard.standard.name));

Additionally a function is provided for location controls enforced by a particular rule. The rule name provided can be a fuzzy or exact match and is configurable in the options:

const awsrsm = require('aws-rule-standards-mappings');
awsrsm.controlsEnforcedByRule("api-gw"); // returns array of controls with "api-gw" in the rule name
awsrsm.controlsEnforcedByRule("api-gw", { exact: true }); // returns empty array
awsrsm.controlsEnforcedByRule("api-gw-ssl-enabled", { exact: true }); // returns matching controls array

Updating Mappings

Each standard rule mapping is scrapped from the AWS Config Developer Guide.

The mappings are updated by running npm run update which runs the update.js script, scrapes the data, and overwrites the files in mappings.

Readme

Keywords

none

Package Sidebar

Install

npm i aws-rule-standards-mappings

Weekly Downloads

1

Version

1.4.0

License

MIT

Unpacked Size

12.5 MB

Total Files

70

Last publish

Collaborators

  • ccampanale