public class IntuitiveHardcodePasswordDetector extends BasicInjectionDetector
This detector will find what look like password hardcode on unknown API.
Such as:
MyCustomClient.setPassword("abc123!");
It will also find API written in other language.
MonClient.defMotDePasse("abc123!");
It will match method that contains other keywords prefixing or suffixing.
MyClient.setConnectionPwd("abc123!");
injectionSinksbugReporter| Constructor and Description |
|---|
IntuitiveHardcodePasswordDetector(edu.umd.cs.findbugs.BugReporter bugReporter) |
| Modifier and Type | Method and Description |
|---|---|
protected InjectionPoint |
getInjectionPoint(org.apache.bcel.generic.InvokeInstruction invoke,
org.apache.bcel.generic.ConstantPoolGen cpg,
org.apache.bcel.generic.InstructionHandle handle) |
protected int |
getPriorityFromTaintFrame(TaintFrame fact,
int offset)
The default implementation of
getPriorityFromTaintFrame() can be overridden if the detector must base its
priority on multiple parameters or special conditions like constant values. |
addParsedInjectionPoint, loadConfiguredSinks, loadConfiguredSinks, loadCustomConfigFiles, loadCustomSinks, loadSinkanalyzeLocation, getPriority, reportanalyzeMethod, shouldAnalyzeClass, visitClassContextpublic IntuitiveHardcodePasswordDetector(edu.umd.cs.findbugs.BugReporter bugReporter)
protected int getPriorityFromTaintFrame(TaintFrame fact, int offset) throws edu.umd.cs.findbugs.ba.DataflowAnalysisException
AbstractInjectionDetectorgetPriorityFromTaintFrame() can be overridden if the detector must base its
priority on multiple parameters or special conditions like constant values.
By default, this method will call the getPriority() method with the parameter taint at the specified offset.getPriorityFromTaintFrame in class AbstractInjectionDetectorfact - The TaintFrame for the inspected instruction call.offset - The offset of the checked parameter.edu.umd.cs.findbugs.ba.DataflowAnalysisException - An exception thrown when the TaintFrame cannot be analyzed.protected InjectionPoint getInjectionPoint(org.apache.bcel.generic.InvokeInstruction invoke, org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InstructionHandle handle)
getInjectionPoint in class BasicInjectionDetectorCopyright © 2017. All rights reserved.