Giter Club home page Giter Club logo

github-actions-goat's Issues

Improve dns exfiltration tutorial

  • simulate exfiltration of token instead of repo (idea)
  • add block mode in harden-runner
  • add missing domain - storage.googleapis.com

Add section to simulate past attacks

Organize the project into two parts

  1. Simulation of past attacks
  • SolarWinds (SUNPOST) - already exists
  • Codecov (tampering of artifact in storage account) - to be added
  • Dependency confusion - to be added
  • Malicious npm package to exfiltrate data on install step (simulation of malicious packages published after account take over/ typosquatting) - already exists
  • Pipeline injection in GitHub Actions (simulation of VS Code bug bounty issue) - to be added
  1. Solutions

Dev codes

Issue created using GitHub Actions workflow

Add tutorial on behavioral analysis of dependencies

  • Setup a node project
  • Add table of past npm packages that were compromised and made outbound calls
  • Setup a node dependency that does outbound call on post-install step
  • Use harden-runner to show outbound traffic
  • Add reference to the tutorial on restricting traffic from build server

Explanation on Why the Build Job is Successful in the DNS Tutorial

I just tried the following tutorial: https://github.com/step-security/attack-simulator/blob/1948a848cc4bdfb224343b29b9ca010da3488c12/docs/DNSExfiltration.md

Here is the fork I created: https://github.com/DataDog/step-security-agent-attack-simulator

At the end I do get the same result as the screenshot in the tutorial, that is, the "build" job is successful but has an "Error: DNS resolution [...] was blocked" annotation.

However, I am quite surprised that the build job is successful if the hardened runner blocked the DNS resolution, right?

Moreover, if I click on the "build" job and expand the "Simulate DNS traffic" section, it looks like the DNS call was successful, meaning that the DNS exfiltration attack would have worked right?

Run domain="${GITHUB_REPOSITORY}.stepsecurity.io"
Server:		127.0.0.53
Address:	127.0.0.53#53

Non-authoritative answer:
Name:	DataDog-step-security-agent-attack-simulator.stepsecurity.io
Address: 54.185.253.63

Isn't this "a valid response from the DNS server"?

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.