# dscacheutil

> gather information, statistics and initiate queries to the Directory Service cache.

dscacheutil does various operations against the Directory Service cache including gathering statistics, initiating lookups, inspection, cache flush, etc.
This tool replaces most of the functionality of the lookupd tool previously available in the OS.

- Page: https://loobins.io/binaries/dscacheutil/
- Author: Ethan Nay
- Created: 2023-08-23
- Tactics: Discovery

## Paths

- `/usr/bin/dscacheutil`

## Example Use Cases

### Lookup  a user

List the user information

```bash
dscacheutil -q user -a name <USER_NAME>
```

- Tactics: Discovery
- Tags: bash, zsh

### Lookup all users

List all user information

```bash
dscacheutil -q user
```

- Tactics: Discovery
- Tags: bash, zsh

## Detections

- No detections at time of publishing

## Resources

- [macOS/binaries/dscacheutil](https://macosbin.com/bin/dscacheutil)
- [dscacheutil man page](https://ss64.com/osx/dscacheutil.html)
