> For the complete documentation index, see [llms.txt](https://book.onosh.ovh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.onosh.ovh/ctf/cnssis2022/dicom.md).

# DICOM

### Contexte

Le standard DICOM permet dans sa conception, une compatibilité vers d'autres formats d'images plus classiques. Cette force est aussi une faiblesse, en particulier pour la sécurité d'un système Windows. Un attaquant semble avoir profité de cette vulnérabilité pour cacher un secret à l'intérieur de cette image DICOM. Saurez-vous retrouver son secret ?

{% file src="/files/JBtFaxv0ncxvLFbAeQoy" %}

### Découverte de DICOM

***Digital imaging and communications in medicine***, couramment abrégée **DICOM**, est un standard pour la gestion [informatique](https://fr.wikipedia.org/wiki/Informatique) des données issues de l'imagerie médicale.

{% embed url="<https://fr.wikipedia.org/wiki/Digital_imaging_and_communications_in_medicine>" %}
Plus d'infos sur DICOM
{% endembed %}

### Ouverture du fichier

Je vérifie l'origine, on est bien sur du DICOM :&#x20;

```
file dicom_challenge.dcm
dicom_challenge.dcm: DICOM medical imaging data
```

J'utilise le client "Rubo DICOM Viewer" pour ouvrir le fichier :&#x20;

![dicom\_challenge.dcm](/files/AuFlxfPwCR8JaFjIsMDM)

On remarque que le flag n'est pas présent sur l'image ou dans les données affichées

### Analyse de la structure du fichier

D'après wikipédia, DICOM utilise une structure bien spécifique pour être intéropérable.

J'utilise le client "Rubo DICOM Parser" pour lire l'ensemble de son contenu, mais toujours pas de flag :&#x20;

![dicom\_challenge.dcm](/files/vcm9ZxbTfpKuYrbvTh37)

### Analyse des strings

Quand on ne trouve rien, on fini toujours par faire un string :smile:

![Flag !](/files/aMOW4qpT6L9gwU7hY0GT)


---

# 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://book.onosh.ovh/ctf/cnssis2022/dicom.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.
