Merge pull request #4117 from Tanq16/master
Detect GitHub OAuth, Refresh and App tokens in filespatch-1
commit
e072c643a6
|
@ -29,4 +29,4 @@ file:
|
|||
- "us-east-2:[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}"
|
||||
- "us-west-1:[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}"
|
||||
- "us-west-2:[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}"
|
||||
- "sa-east-1:[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}"
|
||||
- "sa-east-1:[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}"
|
|
@ -0,0 +1,16 @@
|
|||
id: github-app-token
|
||||
|
||||
info:
|
||||
name: Github App Token
|
||||
author: tanq16
|
||||
severity: medium
|
||||
tags: token,file,github
|
||||
|
||||
file:
|
||||
- extensions:
|
||||
- all
|
||||
|
||||
extractors:
|
||||
- type: regex
|
||||
regex:
|
||||
- "gh[us]_.{36}"
|
|
@ -0,0 +1,16 @@
|
|||
id: github-oauth-token
|
||||
|
||||
info:
|
||||
name: Github OAuth Access Token
|
||||
author: tanq16
|
||||
severity: high
|
||||
tags: token,file,github
|
||||
|
||||
file:
|
||||
- extensions:
|
||||
- all
|
||||
|
||||
extractors:
|
||||
- type: regex
|
||||
regex:
|
||||
- "gho_.{36}"
|
|
@ -0,0 +1,16 @@
|
|||
id: github-refresh-token
|
||||
|
||||
info:
|
||||
name: Github Refresh Token
|
||||
author: tanq16
|
||||
severity: high
|
||||
tags: token,file,github
|
||||
|
||||
file:
|
||||
- extensions:
|
||||
- all
|
||||
|
||||
extractors:
|
||||
- type: regex
|
||||
regex:
|
||||
- "ghr_.{36}"
|
Loading…
Reference in New Issue