Giter VIP home page Giter VIP logo

secops-automation-examples's Introduction

Example automation scripts using JupiterOne platform

This repo provides a few simple examples on how to maintain security/compliance as code and to automate SecOps using the JupiterOne platform.

The examples are in either bash or javascript.

These scripts are provided as is. For questions, please post in the jupiterone-community #dev Slack workspace.

Contents

The following is a list of provided examples and their brief summary:

  • Security Assessments and Findings

    WHERE: see /security-assessment in this repo

    WHAT: documenting manual security testing, assessments, and findings in code (YAML), and publish to JupiterOne graph for central reporting and visualization.

  • Security Assessment Reporting

    WHERE: see /security-assessment-report in this repo

    WHAT: query for any assessment object from JupiterOne and its findings to generate a PDF document as output.

  • Third Party Vendors

    WHERE: see /vendor-management in this repo

    WHAT: documenting details about each third party vendor in code (YAML), including security review status, vendor managers, who has access, etc.

  • Template for Security and Privacy Design

    WHERE: see /security-privacy-design in this repo

    WHAT: a template that includes sections for security and privacy considerations for use with engineering team to integrate security early in the product/feature design phase.

  • Map Repo Dependencies

    WHERE: see separate map-repo-dependencies repo

    WHAT: automation script that reads the package files (e.g. package.json) in your local code repos to create entities and relationships in your JupiterOne graph, so that you can query and visualize how your code depends on each other.

  • Detect and Alert on Specific PRs

    WHERE: see separate bitbucket-pr-detector repo

    WHAT: detect particular kind of pull requests (for example, a RFC document for a new product feature that includes security and privacy considerations) and alert the security team about it.

  • Enforce Code Review and Security Policies in CI/CD

    WHERE: see separate change-management-client repo

    WHAT: a package that can help you automate the enforcement of code review and security policies regarding pull request approval, author and reviewer validation, and vulnerability checks by collecting and analyzing data from the JupiterOne graph. For an example of its usage, check out the change-management-example repo.

Example custom integrations for on-prem resources / internal operations

  • Discover local/on-prem devices using Nmap

    WHERE: see graph-nmap repo

    WHAT: using Nmap to scan local networks to discover on-prem devices and create entities to push to JupiterOne graph.

  • Detect Leaked Secrets in Code

    WHERE: see graph-gitleaks-findings repo

    WHAT: a tool using the gitleaks open source utility to automate detection of leaked secrets in your code repos and publish the findings to your JupiterOne graph for reporting and visualization.

  • Ingest Vuls.io Findings

    WHERE: see graph-vuls-findings repo

    WHAT: a tool for ingesting the output of the vuls scan reports into JupiterOne graph for reporting and visualization.

  • Map DNS records to their targets via Shodan data

    WHERE: see nslookup-shodan repo

    WHAT: An automation script to enrich the domain records mapping in a JupiterOne graph. Identifies domain records that do not already point to a known internal asset, discovers the asset via Shodan, and maps the record to the target host.

Prerequisites and dependencies

For most of the examples and templates included in this repo, you will need jupiterone-client-nodejs. It has been added as a dependency to this project. You can also install it globally:

npm install @jupiterone/jupiterone-client-nodejs -g

You will need the following environment variables in your local .env file

J1_ACCOUNT_ID=yourAccountId
J1_API_TOKEN=yourToken

secops-automation-examples's People

Contributors

benrj avatar dependabot[bot] avatar erichs avatar erkangz avatar jchavez443 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.