> For the complete documentation index, see [llms.txt](https://faresbltagy.gitbook.io/footprintinglabs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://faresbltagy.gitbook.io/footprintinglabs/cyberdefenders/openwire-lab.md).

# OpenWire Lab

Q1) By identifying the C2 IP, we can block traffic to and from this IP, helping to contain the breach and prevent further data exfiltration or command execution. Can you provide the IP of the C2 server that communicated with our server?

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2F5wxvoXmikBsV8cWCgTta%2FScreenshot.png?alt=media&amp;token=e490cd11-a9f3-4f12-8884-73af306eecc5" alt=""><figcaption></figcaption></figure>

Answer:  146.190.21.92

Q2) Initial entry points are critical to trace back the attack vector. What is the port number of the service the adversary exploited?

```
tcp.flags.syn == 1 && tcp.flags.ack == 0
```

This will show only the SYN packets that initiate connections.

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2FJxlEJZzYbYRfqi7fHD5u%2FScreenshot(1).png?alt=media&amp;token=bf04dec5-da6e-49b1-95cc-93d0ee93151e" alt=""><figcaption></figcaption></figure>

Answer:  61616

Q3) Following up on the previous question, what is the name of the service found to be vulnerable?

```
ip.addr == 146.190.21.92 && tcp.port == 61616
```

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2F1uWrbSS3kOuz55Sehzzi%2FScreenshot.png?alt=media&amp;token=e4337c0f-4fb8-4c01-be69-395988a898af" alt=""><figcaption></figcaption></figure>

Answer:  Apache ActiveMQ

Q4) The attacker's infrastructure often involves multiple components. What is the IP of the second C2 server?

```
ip.src != 146.190.21.92 and ip.dst != 146.190.21.92 
```

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2Fedo7BkNQwt2PQQcDrdLG%2FScreenshot(1).png?alt=media&amp;token=3971cd32-a147-4a5a-a3ce-afc6cf3fa6c0" alt=""><figcaption></figcaption></figure>

Answer:  128.199.52.72

Q5) Attackers usually leave traces on the disk. What is the name of the reverse shell executable dropped on the server?

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2FyYaTQr3vk5sov1aFnYaI%2FScreenshot(2).png?alt=media&amp;token=5290e4c5-e121-4c21-8e63-7b8a0ef23d94" alt=""><figcaption></figcaption></figure>

\#OR&#x20;

```
http.request.method == "GET"
```

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2F1inxcbsmRRh7Cwdoyqc9%2FScreenshot(3).png?alt=media&amp;token=4cec52c7-9f6b-429c-888f-e72cc0761d38" alt=""><figcaption></figcaption></figure>

Answer:  docker

Q6) What Java class was invoked by the XML file to run the exploit?

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2FgmuIPPgvn2PtXS950TFR%2FScreenshot(4).png?alt=media&amp;token=8c2cb736-ab7b-413f-8e7f-cf6fb5153a7f" alt=""><figcaption></figcaption></figure>

Answer:  java.lang.ProcessBuilder

Q7) To better understand the specific security flaw exploited, can you identify the CVE identifier associated with this vulnerability?

<figure><img src="https://2537271824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIswWWP3l0rGuQmG2WUcr%2Fuploads%2FkojkOznRRaWfbFDLEwe9%2FScreenshot(5).png?alt=media&amp;token=993c66c4-5f05-4d1b-839e-2aa924f09035" alt=""><figcaption></figcaption></figure>

Answrer: CVE-2023-46604

Q8) To address the vulnerability, the vendor added a validation step, preventing exploitation. In what Java class and method was this validation step added? (Format: Class:Method)

Answer: BaseDataStreamMarshaller.createThrowable


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://faresbltagy.gitbook.io/footprintinglabs/cyberdefenders/openwire-lab.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
