# Hidden Files

## Execution

Hiding the file mantvydas.sdb using a native windows binary:

{% code title="attacker\@victim" %}

```csharp
PS C:\experiments> attrib.exe +h .\mantvydas.sdb
```

{% endcode %}

Note how powershell (or cmd) says the file does not exist, however you can type out its contents if you know the file exists:

![](/files/-LIRzAgmoyr76o736RRL)

Note, that `dir /a:h` (attribute: hidden) reveals files with a "hidden" attribute set:

![](/files/-LIRzl7yyyIiUId6a7O-)

## Observations

As usual, monitoring commandline arguments may be a good idea if you want to identify these events:

![](/files/-LIS-Bz4i13BhbDRHKLO)

## References

{% embed url="<https://attack.mitre.org/wiki/Technique/T1158>" %}


---

# Agent Instructions: 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:

```
GET https://www.ired.team/offensive-security/defense-evasion/t1158-hidden-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
