Skip to content

github-new-rules #5018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions rules/cloud/github/github_pages_public.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
title: GitHub Repository Pages Made Public
id: 0c46d4f4-a2bf-4104-9597-8d653fc2bb55
status: experimental
description: Detects when GitHub Pages of a repository are made public, which may indicate potential unauthorized exposure of sensitive information or code.
references:
- https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site
- https://www.sentinelone.com/blog/exploiting-repos-6-ways-threat-actors-abuse-github-other-devops-platforms
author: Ivan Saakov
date: 2024-09-20
tags:
- attack.collection
- attack.t1529
logsource:
product: github
service: audit
detection:
selection:
action: repo.pages_public
condition: selection
falsepositives:
- Legitimate publishing of repository pages by authorized users
level: medium
26 changes: 26 additions & 0 deletions rules/cloud/github/github_repository_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
title: GitHub Repository Archived or Unarchived
id: dca8991c-cb16-4128-abf8-6b11e5cd156f
status: experimental
description: Detects when a GitHub repository is archived or unarchived, which may indicate unauthorized changes to repository status.
references:
- https://docs.github.com/en/repositories/archiving-a-github-repository/archiving-repositories
- https://www.sentinelone.com/blog/exploiting-repos-6-ways-threat-actors-abuse-github-other-devops-platforms
author: Ivan Saakov
date: 2024-09-20
tags:
- attack.persistence
- attack.defense-evasion
- attack.t1098.001
- attack.t1078.004
logsource:
product: github
service: audit
detection:
selection:
action:
- archived
- unarchived
condition: selection
falsepositives:
- Legitimate archived or unarchived GitHub repositories by authorized users
level: medium
Loading