Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic JSP Webshell false negative #271

Open
orapic opened this issue Jul 24, 2023 · 1 comment
Open

Generic JSP Webshell false negative #271

orapic opened this issue Jul 24, 2023 · 1 comment

Comments

@orapic
Copy link

orapic commented Jul 24, 2023

Hi,

I stumbled upon a reverse jsp shell and the generic rule for jsp webshells WEBSHELL_JSP_Generic returns a false positive due to the nature of the reverse shell.

Changing this:

and (
            any of ( $input* ) and
            any of ( $req* )
        )

to this:

and (
            any of ( $input* ) or
            any of ( $req* )
        )

Solves the issue. This might apply to the other JSP rules. I dont know how much false positives is that going to give but I think its preferable to have false positives than false negatives.

Kind regards,

@ruppde
Copy link
Contributor

ruppde commented Aug 3, 2023

hi,

that change would produce many false positives. Can you upload the webshell to virustotal and send me the hash?

regards
arnim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants