Currently, for a class to be scanned by the main detector, it needs to meet at least one of the following conditions:
-
Implement a Lambda handler Interface (RequestHandler or RequestStreamHandler)
-
Has a method that receives either (Map, com.amazonaws.services.lambda.runtime.Context) or (InputStream, OutputStream, com.amazonaws.services.lambda.runtime.Context) as parameters. This method would be considered a Lambda Handler.
The issue here is that in general, we don't need to implement an interface to be able to have a Lambda function. For example, this is a valid Lambda handler class:
public class NewHandler {
public String handleRequest(){
//code
}
}
Solving this problem will allow us to scan most Lambda Handler classes that are currently falling through the cracks.
Currently, for a class to be scanned by the main detector, it needs to meet at least one of the following conditions:
Implement a Lambda handler Interface (RequestHandler or RequestStreamHandler)
Has a method that receives either (Map, com.amazonaws.services.lambda.runtime.Context) or (InputStream, OutputStream, com.amazonaws.services.lambda.runtime.Context) as parameters. This method would be considered a Lambda Handler.
The issue here is that in general, we don't need to implement an interface to be able to have a Lambda function. For example, this is a valid Lambda handler class:
Solving this problem will allow us to scan most Lambda Handler classes that are currently falling through the cracks.