SkillSpector
SkillSpector copied to clipboard
Add DS5 Java insecure-deserialization detection
Gap
The static-pattern deserialization checks (DS1–DS4) cover PHP, Ruby, and JavaScript, but there is no Java coverage. A skill containing ObjectInputStream.readObject(), XMLDecoder, XStream, Jackson default typing, or SnakeYAML Constructor usage is not flagged.
Proposed change
Add a DS5 rule for Java insecure deserialization (HIGH), covering ObjectInputStream/readObject, XMLDecoder, XStream, Jackson default typing, and SnakeYAML Constructor, with safe negatives. Includes unit tests and a docs update.
I have this implemented in my fork and will open a PR referencing this issue.
Signed-off-by: Mohd Raja [email protected]