Skip to content

Commit 89fe3bb

Browse files
authored
Signed-off-by: behnazh-w <[email protected]>
1 parent 6f54975 commit 89fe3bb

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

docs/source/pages/tutorials/detect_malicious_java_dep.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
* - Artifact name
2626
- `Package URL (PURL) <https://github.com/package-url/purl-spec>`_
2727
* - `log4j-core <https://central.sonatype.com/artifact/org.apache.logging.log4j/log4j-core>`_
28-
- ``pkg:maven/org.apache.logging.log4j/[email protected]beta2?type=jar``
28+
- ``pkg:maven/org.apache.logging.log4j/[email protected]beta3?type=jar``
2929
* - `jackson-databind <https://central.sonatype.com/artifact/io.github.behnazh-w.demo/jackson-databind>`_
3030
- ``pkg:maven/io.github.behnazh-w.demo/[email protected]?type=jar``
3131

@@ -110,20 +110,20 @@ As you scroll down in the HTML report, you will see a section for the dependenci
110110
| Macaron has found the two dependencies as expected:
111111
112112
* ``io.github.behnazh-w.demo:jackson-databind:1.0``
113-
* ``org.apache.logging.log4j:log4j-core:3.0.0-beta2``
113+
* ``org.apache.logging.log4j:log4j-core:3.0.0-beta3``
114114

115-
When we open the reports for each dependency, we see that ``mcn_find_artifact_pipeline_1`` is passed for ``org.apache.logging.log4j:log4j-core:3.0.0-beta2``
116-
and a GitHub Actions workflow run is found for publishing version ``3.0.0-beta2``. However, this check is failing for ``io.github.behnazh-w.demo:jackson-databind:1.0``.
115+
When we open the reports for each dependency, we see that ``mcn_find_artifact_pipeline_1`` is passed for ``org.apache.logging.log4j:log4j-core:3.0.0-beta3``
116+
and a GitHub Actions workflow run is found for publishing version ``3.0.0-beta3``. However, this check is failing for ``io.github.behnazh-w.demo:jackson-databind:1.0``.
117117
This means that ``io.github.behnazh-w.demo:jackson-databind:1.0`` could have been built and published manually to Maven Central
118118
and could potentially be malicious.
119119

120120
.. _fig_find_artifact_pipeline_log4j:
121121

122122
.. figure:: ../../_static/images/tutorial_log4j_find_pipeline.png
123-
:alt: mcn_find_artifact_pipeline_1 for org.apache.logging.log4j:log4j-core:3.0.0-beta2
123+
:alt: mcn_find_artifact_pipeline_1 for org.apache.logging.log4j:log4j-core:3.0.0-beta3
124124
:align: center
125125

126-
``org.apache.logging.log4j:log4j-core:3.0.0-beta2``
126+
``org.apache.logging.log4j:log4j-core:3.0.0-beta3``
127127

128128
.. _fig_infer_artifact_pipeline_bh_jackson_databind:
129129

tests/integration/cases/log4j_release_pipeline/policy.dl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ Policy("test_policy", component_id, "") :-
1919
is_repo_url(component_id, "https://github.com/apache/logging-log4j2").
2020

2121
apply_policy_to("test_policy", component_id) :-
22-
is_component(component_id, "pkg:maven/org.apache.logging.log4j/[email protected]beta2").
22+
is_component(component_id, "pkg:maven/org.apache.logging.log4j/[email protected]beta3").

tests/integration/cases/log4j_release_pipeline/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 - 2024, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2024 - 2025, Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33

44
description: |
@@ -14,7 +14,7 @@ steps:
1414
options:
1515
command_args:
1616
- -purl
17-
- pkg:maven/org.apache.logging.log4j/[email protected]beta2
17+
- pkg:maven/org.apache.logging.log4j/[email protected]beta3
1818
- name: Run macaron verify-policy to verify passed/failed checks
1919
kind: verify
2020
options:

0 commit comments

Comments
 (0)