postprocess

package
v4.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//WeakPswdCaption is the caption used for password values we identify as weak
	WeakPswdCaption string = "Potentially Weak Password"
)

Variables

This section is empty.

Functions

func IsCard

func IsCard(cc string) bool

IsCard Run a mod10 check on a potential card number

func PasswordFalse

func PasswordFalse(password string) (confidence int, ignore bool)

PasswordFalse Make sure we don't report strings as passwords if they contain indicators that it's a variable assignment, or some other disqualifier based on line context

func PasswordWeak

func PasswordWeak(password string) (weak bool)

PasswordWeak If the password doesn't meet minimum requirements, call it weak

func Shannon

func Shannon(s string) float64

Shannon is an algorithm used to calculate the complexity of the string

func SkipAccountTokenPassword

func SkipAccountTokenPassword(password string) bool

To report account_token as credit card, need to skip for password

func SkipPasswordWithHTMLEntities

func SkipPasswordWithHTMLEntities(password string) bool

SkipPasswordWithHTMLEntities returns true if the password value contains a HTML entities. UseCase: Html entities are used as contents in localized files. ex - "Lösenord" is "Lösenord"

func SkipPasswordWithUnicode

func SkipPasswordWithUnicode(password string) bool

SkipPasswordWithUnicode returns true if the password value contains a non ASCII character. UseCase: Localized content contains unicode char for different languages which cannot be passwords in real world.

func SkipSameKeyValue

func SkipSameKeyValue(matchValue string, lineValue string) (result bool)

SkipSameKeyValue reads the matched value from hit object to compare if the key and value are same. UseCase: In config/properties files where key/value pair are used

func ValidSSN

func ValidSSN(ssn string) bool

ValidSSN checks if a SSN meets standard

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL