npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

aws-rule-standards-mappings

v1.4.0

Published

Store of consumable data for mapping AWS Config Rules to various security and compliance standards.

Downloads

2

Readme

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.