> For the complete documentation index, see [llms.txt](https://docs.cooku222.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cooku222.kr/security/defensive-security/ids-ips-tools-introduction/suricata-macos.md).

# Suricata 소개 및 설치(MacOS)

공식문서: [https://suricata.io/﻿](https://suricata.io/)

**Suricata란?**

* Suricata는 대부분의 민간 및 공공 기관에서 사용하고, 주요 벤더들이 자산 보호를 위해 내장하는 고성능 오픈소스 네트워크 분석 및 위협 탐지 소프트웨어

오픈소스 프로젝트이며, 네트워크 보안 모니터링 기능(HTTP 요청, TLS 인증 저장, 파일 추출 및 디스크 저장, 전체 캡처(pcap) 등)을 제공해준다.&#x20;

***

하단과 같이 설치를 진행해준다.&#x20;

```
brew update
brew install suricata
```

<figure><img src="https://blog.kakaocdn.net/dna/2opSd/dJMcaaryIhU/AAAAAAAAAAAAAAAAAAAAAFMGO-xcUZQke_VFbDygakcwxR46oy8zRHSsd6cU5eDx/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=3Lknq%2B%2Fy%2BKguLIS4MZR6QStkeCQ%3D" alt=""><figcaption></figcaption></figure>

Brew 명령어로 설치를 진행해주면 된다.&#x20;

```
sudo suricata-update
```

<figure><img src="https://blog.kakaocdn.net/dna/bBN5np/dJMcacQqmPB/AAAAAAAAAAAAAAAAAAAAAG4sQYDGDU0ALL4LEWS8tyPfWoQFqhFbQW2wK_3uWUJI/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=o5hleIC2IIXVAXcIO3JBmmqS5qs%3D" alt=""><figcaption></figcaption></figure>

기본 룰셋을 다운 받아준다. 오류창 뜨긴 하는데 기능상 큰 문제는 없으니 계속 진행해주면 된다.&#x20;

```
sudo suricata -c /opt/homebrew/etc/suricata/suricata.yaml -i en0
```

<figure><img src="https://blog.kakaocdn.net/dna/q9OPu/dJMcafl57mn/AAAAAAAAAAAAAAAAAAAAAKaooG7gScUH3bFS1oH1o6ho1f_9qY1woeUmsw8FPbvK/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&#x26;expires=1782831599&#x26;allow_ip=&#x26;allow_referer=&#x26;signature=XMPRzjr8IanV80JBTfSvKMZJn6I%3D" alt=""><figcaption></figcaption></figure>

보통 en0을 메인 와이파이로 쓰기 때문에 위의 명령어로 yaml 파일을 실행하면 suricata가 실행된다. \
참고로 yaml 파일 경로끼리 충돌 나서 작동이 잘 안 될 수도 있으니 이 부분에 주의한다.


---

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

```
GET https://docs.cooku222.kr/security/defensive-security/ids-ips-tools-introduction/suricata-macos.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.
