forked from mirrors/kingfisher
29 lines
776 B
YAML
29 lines
776 B
YAML
rules:
|
|
- name: FTP Connection URI Credentials
|
|
id: kingfisher.ftp.1
|
|
pattern: |
|
|
(?xi)
|
|
\b
|
|
(?P<TOKEN>
|
|
(?P<FTP_SCHEME>ftps?)://
|
|
(?P<FTP_USERNAME>[^:@\s]{1,64})
|
|
:
|
|
(?P<FTP_PASSWORD>[^@\s]{6,128})
|
|
@
|
|
(?P<FTP_HOST>[^\s/"':]{4,128})
|
|
(?::(?P<FTP_PORT>\d{2,5}))?
|
|
(?:/[^\s"']*)?
|
|
)
|
|
pattern_requirements:
|
|
min_digits: 2
|
|
min_entropy: 2.5
|
|
confidence: medium
|
|
examples:
|
|
- "ftp://johndoe:pg9stqu2018@files.example.edu.cn"
|
|
- "BACKUP_URL=ftps://backupuser:S5ec4rePassWord@ftp.corp.example.com"
|
|
validation:
|
|
type: Raw
|
|
content: ftp
|
|
references:
|
|
- https://datatracker.ietf.org/doc/html/rfc959
|
|
- https://datatracker.ietf.org/doc/html/rfc4217
|