find-sec-bugs

简介

find-sec-bugs 即 Find Security Bugs,是SpotBugs的一款插件,用于Java Web应用程序的安全审核。

特性

1)135 种 bug 模型

可以检测 超过816个独特的 API 签名的 135 种类型的漏洞

2)支持多种框架和库

涵盖流行的框架,包括 Spring-MVC、Struts 和 Tapestry 等。

3)IDE集成

插件适用于 EclipseIntelliJAndroid StudioNetBeans
命令行集成可用于 AntMaven

4)持续集成

可以与 JenkinsSonarQube 等系统集成。

5)覆盖 OWASP TOP 10 和 CWE

对于每种错误模式,都提供了广泛的参考,并引用了 OWASP Top 10 和 CWE。

6)欢迎参与贡献

项目开源,并且欢迎大家参与贡献

用法举例

Maven

1)配置POM

配置SpotBugs Maven Pluginpom.xml

<build>
    <plugins>
        
        [...]
        <!-- SpotBugs Static Analysis -->
        <plugin>
            <groupId>com.github.spotbugs</groupId>
            <artifactId>spotbugs-maven-plugin</artifactId>
            <version>3.1.12</version>
            <configuration>
                <effort>Max</effort>
                <threshold>Low</threshold>
                <failOnError>true</failOnError>
                <includeFilterFile>${session.executionRootDirectory}/spotbugs-security-include.xml</includeFilterFile>
                <excludeFilterFile>${session.executionRootDirectory}/spotbugs-security-exclude.xml</excludeFilterFile>
                <plugins>
                    <plugin>
                        <groupId>com.h3xstream.findsecbugs</groupId>
                        <artifactId>findsecbugs-plugin</artifactId>
                        <version>1.9.0</version>
                    </plugin>
                </plugins>
            </configuration>
        </plugin>
    </plugins>
</build>

2)执行检查

mvn compile
mvn spotbugs:spotbugs

3) 结果分析

GUI方式:

mvn spotbugs:gui

XML Report:
查看target/findbugsXml.xml的结果报告。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容