forked from mirrors/kingfisher
- Updated the README so every provider example (GitHub, GitLab, Bitbucket, Azure Repos, Gitea, Hugging Face, Slack, Jira, Confluence, S3, GCS, Docker) uses the new subcommand style. - Restored the direct kingfisher scan /path/to/dir flow for local filesystem scans while adding a --list-only switch to each provider subcommand so repository enumeration no longer requires the standalone github repos, gitlab repos, etc. commands. - Removed the legacy top-level provider commands (kingfisher github, kingfisher gitlab, kingfisher gitea, kingfisher bitbucket, kingfisher azure, kingfisher huggingface) now that enumeration lives under kingfisher scan <provider> --list-only. - Fixed kingfisher scan github … (and other provider-specific subcommands) so they no longer demand placeholder path arguments before the CLI accepts the request. - Removed the --bitbucket-username, --bitbucket-token, and --bitbucket-oauth-token flags in favour of KF_BITBUCKET_* environment variables when authenticating to Bitbucket.
62 lines
No EOL
1.5 KiB
YAML
62 lines
No EOL
1.5 KiB
YAML
rules:
|
|
- name: MaxMind License Key
|
|
id: kingfisher.maxmind.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
(
|
|
[a-z0-9]{6}_[a-z0-9]{29}_mmk
|
|
)
|
|
\b
|
|
min_entropy: 3.8
|
|
confidence: medium
|
|
examples:
|
|
- MAXMIND_LICENSE=AB12CD_1234567890abcdef1234567890abc_mmk
|
|
- license_key="ZXCVBN_0987654321abcdef1234567890abc_mmk"
|
|
references:
|
|
- https://dev.maxmind.com/geoip/docs/web-services
|
|
depends_on_rule:
|
|
- rule_id: kingfisher.maxmind.2
|
|
variable: ACCOUNT_ID
|
|
validation:
|
|
type: Http
|
|
content:
|
|
request:
|
|
method: GET
|
|
url: https://geoip.maxmind.com/geoip/v2.1/city/me
|
|
headers:
|
|
Authorization: "Basic {{ ACCOUNT_ID | append: ':' | append: TOKEN | b64enc }}"
|
|
Accept: application/json
|
|
response_matcher:
|
|
- report_response: true
|
|
- type: StatusMatch
|
|
status:
|
|
- 200
|
|
- name: MaxMind Account ID
|
|
id: kingfisher.maxmind.2
|
|
pattern: |
|
|
(?xi)
|
|
(?:maxmind|geoip|geolite)
|
|
(?:.|[\n\r]){0,40}?
|
|
(?:account|user)
|
|
(?:.|[\n\r]){0,10}?
|
|
(?:id|number)
|
|
(?:.|[\n\r]){0,10}?
|
|
[:=\s]+
|
|
\s*
|
|
["']?
|
|
\b
|
|
(
|
|
\d{4,8}
|
|
)
|
|
\b
|
|
["']?
|
|
min_entropy: 2.0
|
|
confidence: low
|
|
examples:
|
|
- MAXMIND_ACCOUNT_ID=123456
|
|
- AccountID 988765
|
|
- '"maxmind": {"account_id": "654321", "license_key": "..."}'
|
|
- 'geoip_account_number: 456789'
|
|
references:
|
|
- https://dev.maxmind.com/geoip/docs/web-services |