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

securibench as submodule #4

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/test/java/securibench"]
path = src/test/java/securibench
url = https://github.com/PAMunb/securibench-micro.git
74 changes: 42 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@ A small benchmark for testin the Joana capabilities for taint analysis.

### Setup

In the very first moment, execute the `setup.sh` script to download the Joana
library and configure it as a local maven dependency.
- In the project's root folder, execute the script to download the Joana library and configure it as a local maven dependency.

```
./setup.sh
```

- Clone submodule that contents the test suite for `securibench`.

```
git submodule add https://github.com/PAMunb/securibench-micro.git src/test/java/securibench
```

<!-- Update submodule `git submodule update --remote` -->

## TEST

Expand All @@ -26,46 +37,45 @@ Currently, you might run the 'securibench' benchmark using JUnit test cases. Suc
* StrongUpdate test suite: `mvn test -Dtest="br.unb.cic.joana.securibench.micro.suite.StrongUpdateTestSuite"`



###### failed: 24, passed: 80, ignored: 0 of 104 test (76.92%)
###### failed: 24, passed: 79, ignored: 0 of 103 test (76.70%)

- **AliasingTest** - failed: 2, passed: 4, ignored: 0 of 6 test `(66.67%)`
- *Fails :*
- [4] *related to issue(i)*
- [6] *related to issue(i)*
- [4] *related to issue(i)* <!-- Expecting 2 but found 1 vulnerabilities. -->
- [6] *related to issue(i)* <!-- Expecting 7 but found 1 vulnerabilities. -->
- *Violations :* `6/12`
- *Precision :* `100%`
- *Recall :* `36%`
- *fScore :* `53%`

- **ArraysTest** - failed: 1, passed: 9, ignored: 0 of 10 test `(90%)`
- *Fails :*
- [5] *related to issue(ii)*
- [5] *related to issue(ii)* <!-- Expecting 0 but found 1 vulnerabilities. -->
- *Violations :* `10/9`
- *Precision :* `90%`
- *Recall :* `100%`
- *fScore :* `95%`

- **BasicTest** - failed: 14, passed: 29, ignored: 0 of 43 test `(67.44%)`
- **BasicTest** - failed: 14, passed: 28, ignored: 0 of 42 test `(66.67%)`
- *Fails :*
- [5] *related to issue(i)*
- [11] *related to issue(i)*
- [12] *related to issue(i)*
- [16] --it is throwing an error while is analyzed
- [19] --method java.sql.Connection.prepareStatement is not recognized as a sink
- [20] --method java.sql.Statement.execute is not recognized as a sink
- [21] --method java.sql.Statement.executeUpdate is not recognized as a sink
- [23] *related to issue(i)*
- [28] *related to issue(i)*
- [29] *related to issue(i)*
- [31] *related to issue(i)*
- [35] *related to issue(iii)*
- [40] *flaky*
- [42] *related to issue(iii)*
- *Violations :* `50/61`
- [5] *related to issue(i)* <!-- Expecting 3 but found 1 vulnerabilities. -->
- [11] *related to issue(i)* <!-- Expecting 2 but found 1 vulnerabilities. -->
- [12] *related to issue(i)* <!-- Expecting 2 but found 1 vulnerabilities. -->
- [16] --it is throwing an error while is analyzed <!-- -->
- [19] --method java.sql.Connection.prepareStatement is not recognized as a sink <!-- Expecting 1 but found 0 vulnerabilities. -->
- [20] --method java.sql.Statement.execute is not recognized as a sink <!-- Expecting 1 but found 0 vulnerabilities. -->
- [21] --method java.sql.Statement.executeUpdate is not recognized as a sink <!-- Expecting 4 but found 0 vulnerabilities. -->
- [23] *related to issue(i)* <!-- Expecting 3 but found 2 vulnerabilities. -->
- [28] *related to issue(i)* <!-- Expecting 2 but found 1 vulnerabilities. -->
- [29] *related to issue(i)* <!-- Expecting 2 but found 1 vulnerabilities. -->
- [31] *related to issue(i)* <!-- Expecting 3 but found 1 vulnerabilities. -->
- [35] *related to issue(iii)* <!-- Expecting 6 but found 12 vulnerabilities. -->
- [40] *flaky* <!-- Expecting 1 but found 0 vulnerabilities. -->
- [42] *related to issue(iii)* <!-- Expecting 1 but found 2 vulnerabilities. -->
- *Violations :* `52/61`
- *Precision :* `81%`
- *Recall :* `65.5%`
- *fScore :* `71.5%`
- *Recall :* `65%`
- *fScore :* `72%`

- **CollectionTest** - failed: 0, passed: 14, ignored: 0 of 14 test `(100%)`
- *Violations :* `15/15`
Expand All @@ -78,9 +88,9 @@ Currently, you might run the 'securibench' benchmark using JUnit test cases. Suc

- **InterTest** - failed: 3, passed: 11, ignored: 0 of 14 test `(85.71%)`
- *Fails :*
- [2] *related to issue(i)*
- [6]
- [9] *related to issue(i)*
- [2] *related to issue(i)* <!-- Expecting 2 but found 1 vulnerabilities. -->
- [6] <!-- Expecting 1 but found 0 vulnerabilities. -->
- [9] *related to issue(i)* <!-- Expecting 2 but found 1 vulnerabilities. -->
- *Violations :* `13/15`
- *Precision :* `100%`
- *Recall :* `79%`
Expand All @@ -91,10 +101,10 @@ Currently, you might run the 'securibench' benchmark using JUnit test cases. Suc

- **StrongUpdateTest** - failed: 4, passed: 1, ignored: 0 of 5 test `(20%)`
- *Fails :*
- [1] *related to issue(ii)*
- [2] *related to issue(ii)*
- [3] *related to issue(ii)*
- [5] *related to issue(ii)*
- [1] *related to issue(ii)* <!-- Expecting 0 but found 1 vulnerabilities. -->
- [2] *related to issue(ii)* <!-- Expecting 0 but found 1 vulnerabilities. -->
- [3] *related to issue(ii)* <!-- Expecting 0 but found 1 vulnerabilities. -->
- [5] *related to issue(ii)* <!-- Expecting 0 but found 1 vulnerabilities. -->
- *Violations :* `5/1`
- *Precision :* `20%`
- *Recall :* `100%`
Expand Down
1 change: 1 addition & 0 deletions src/test/java/securibench
Submodule securibench added at 422ea1
52 changes: 0 additions & 52 deletions src/test/java/securibench/micro/BasicTestCase.java

This file was deleted.

28 changes: 0 additions & 28 deletions src/test/java/securibench/micro/MicroTestCase.java

This file was deleted.

39 changes: 0 additions & 39 deletions src/test/java/securibench/micro/aliasing/Aliasing1.java

This file was deleted.

40 changes: 0 additions & 40 deletions src/test/java/securibench/micro/aliasing/Aliasing2.java

This file was deleted.

42 changes: 0 additions & 42 deletions src/test/java/securibench/micro/aliasing/Aliasing3.java

This file was deleted.

43 changes: 0 additions & 43 deletions src/test/java/securibench/micro/aliasing/Aliasing4.java

This file was deleted.

Loading