Cisco eStreamer 로그 수집
파서 버전: 5.0
이 문서에서는 Bindplane을 사용하여 Cisco eStreamer 로그를 Google Security Operations로 수집하는 방법을 설명합니다.
파서는 키-값 쌍이 있는 Cisco eStreamer syslog 형식 로그에서 필드를 추출합니다. grok 또는 kv를 사용하여 로그 메시지를 파싱한 다음 이러한 값을 통합 데이터 모델 (UDM)에 매핑합니다. 또한 이벤트 소스 및 유형의 기본 메타데이터 값을 설정합니다.
시작하기 전에
다음 기본 요건이 충족되었는지 확인합니다.
- Google SecOps 인스턴스입니다.
- Windows Server 2016 이상 또는
systemd가 설치된 Linux 호스트 - 프록시 뒤에서 실행하는 경우 Bindplane 에이전트 요구사항에 따라 방화벽 포트가 열려 있는지 확인합니다.
- Cisco Firepower Management Center (FMC)에 대한 권한이 있는 액세스
- eNcore CLI 클라이언트를 실행할 Linux 시스템
Google SecOps 수집 인증 파일 가져오기
- Google SecOps 콘솔에 로그인합니다.
- SIEM 설정 > 수집 에이전트로 이동합니다.
- 데이터 수집 인증 파일을 다운로드합니다.
- Bindplane이 설치될 시스템에 파일을 안전하게 저장합니다.
Google SecOps 고객 ID 가져오기
- Google SecOps 콘솔에 로그인합니다.
- SIEM 설정 > 프로필로 이동합니다.
- 조직 세부정보 섹션에서 고객 ID를 복사하여 저장합니다.
Bindplane 에이전트 설치
다음 안내에 따라 Windows 또는 Linux 운영체제에 Bindplane 에이전트를 설치합니다.
Windows 설치
- 명령 프롬프트 또는 PowerShell을 관리자로 엽니다.
다음 명령어를 실행합니다.
msiexec /i "https://github.com/observIQ/bindplane-agent/releases/latest/download/observiq-otel-collector.msi" /quiet
Linux 설치
- 루트 또는 sudo 권한으로 터미널을 엽니다.
다음 명령어를 실행합니다.
sudo sh -c "$(curl -fsSlL https://github.com/observiq/bindplane-agent/releases/latest/download/install_unix.sh)" install_unix.sh
추가 설치 리소스
추가 설치 옵션은 이 설치 가이드를 참고하세요.
Syslog를 수집하여 Google SecOps로 전송하도록 Bindplane 에이전트 구성
구성 파일에 액세스합니다.
config.yaml파일을 찾습니다. 일반적으로 Linux의 경우/observiq-otel-collector/디렉터리, Windows의 경우 `C:\Program Files\observIQ OpenTelemetry Collector` 디렉터리에 있습니다.- 텍스트 편집기 (예:
nano,vi또는 메모장)를 사용하여 파일을 엽니다.
다음과 같이
config.yaml파일을 수정합니다.receivers: udplog: # Replace the port and IP address as required listen_address: "0.0.0.0:5514" exporters: chronicle/chronicle_w_labels: compression: gzip # Adjust the path to the credentials file you downloaded in Step 1 creds_file_path: '/path/to/ingestion-authentication-file.json' # Replace with your actual customer ID from Step 2 customer_id: YOUR_CUSTOMER_ID endpoint: malachiteingestion-pa.googleapis.com # Add optional ingestion labels for better organization log_type: 'CISCO_ESTREAMER' raw_log_field: body ingestion_labels: service: pipelines: logs/source0__chronicle_w_labels-0: receivers: - udplog exporters: - chronicle/chronicle_w_labels
- 인프라에 필요한 대로 포트와 IP 주소를 바꿉니다.
YOUR_CUSTOMER_ID를 실제 고객 ID로 바꿉니다.- 1단계에서 인증 파일을 저장한 파일 경로로
/path/to/ingestion-authentication-file.json를 업데이트합니다.
변경사항을 적용하려면 Bindplane 에이전트를 다시 시작하세요.
Linux에서 Bindplane 에이전트를 다시 시작하려면 다음 단계를 따르세요.
다음 명령어를 실행합니다.
sudo systemctl restart observiq-otel-collector서비스가 실행 중인지 확인합니다.
sudo systemctl status observiq-otel-collector로그에서 오류를 확인합니다.
sudo journalctl -u observiq-otel-collector -f
Windows에서 Bindplane 에이전트를 다시 시작하려면 다음 단계를 따르세요.
다음 옵션 중 하나를 선택합니다.
- 명령 프롬프트 또는 PowerShell(관리자 권한)
net stop observiq-otel-collector && net start observiq-otel-collector- 서비스 콘솔:
Win+R키를 누르고services.msc를 입력한 다음 Enter 키를 누릅니다.- observIQ OpenTelemetry Collector를 찾습니다.
- 마우스 오른쪽 버튼을 클릭하고 다시 시작을 선택합니다.
서비스가 실행 중인지 확인합니다.
sc query observiq-otel-collector로그에서 오류를 확인합니다.
type "C:\Program Files\observIQ OpenTelemetry Collector\log\collector.log"
Cisco eStreamer에서 Syslog 전달 구성
Firepower Management Center에서 eStreamer 구성
- Firepower Management Center에 로그인합니다.
- 시스템 > 통합 > eStreamer로 이동합니다.
- eStreamer를 클릭하여 eStreamer 이벤트 구성에 액세스합니다.
- 캡처할 이벤트 유형 옆에 있는 체크박스를 선택합니다.
- 침입 이벤트: 침입 감지 이벤트
- 침입 이벤트 패킷 데이터: 침입 이벤트와 연결된 패킷 캡처
- 연결 이벤트: 네트워크 연결 데이터
- 보안 지능형 이벤트: 위협 인텔리전스 데이터
- 파일 이벤트: 파일 분석 이벤트
- 멀웨어 이벤트: 멀웨어 감지 이벤트
- 저장을 클릭합니다.
eStreamer 클라이언트 만들기
- eStreamer 페이지에서 클라이언트 만들기를 클릭합니다.
- 다음 구성 세부정보를 제공합니다.
- 호스트 이름: eNcore 클라이언트가 실행될 Linux 시스템의 IP 주소를 입력합니다.
- 비밀번호: 인증서 파일을 암호화할 비밀번호를 입력합니다.
- 저장을 클릭합니다.
- 생성된 PKCS12 인증서 파일을 다운로드하여 eNcore 클라이언트 시스템으로 전송합니다.
eNcore CLI 클라이언트 설치 및 구성
- Linux 시스템에서 Cisco로부터 eStreamer eNcore CLI 클라이언트를 다운로드합니다.
eNcore 패키지를 추출합니다.
tar -xzf eStreamer-eNcore-*.tar.gz cd eStreamer-eNcore-*설정 스크립트를 실행합니다.
./encore.sh setup메시지가 표시되면 키-값 쌍의 출력 형식 (SIEM 시스템과 호환)을 선택합니다.
FMC IP 주소와 PKCS12 인증서 비밀번호를 입력합니다.
syslog 메시지를 Bindplane 에이전트에 출력하도록
estreamer.conf파일을 구성합니다.- 텍스트 편집기에서
estreamer.conf파일을 엽니다. - outputters 섹션을 찾아 Bindplane 에이전트에 syslog를 보내도록 구성합니다.
{ "handler": { "outputters": [ { "name": "syslog", "adapter": "kvpair", "enabled": true, "stream": { "uri": "udp://BINDPLANE_AGENT_IP:5514" } } ] } }- 텍스트 편집기에서
BINDPLANE_AGENT_IP를 Bindplane 에이전트의 IP 주소로 바꿉니다.
eNcore 클라이언트 시작
포그라운드 모드에서 연결을 테스트합니다.
./encore.sh foreground확인이 완료되면 eNcore를 백그라운드 서비스로 시작합니다.
./encore.sh start
UDM 매핑 테이블
| 로그 필드 | UDM 매핑 | 논리 |
|---|---|---|
additional_deviceInboundInterface |
additional.fields |
병합됨 |
additional_deviceOutboundInterface |
additional.fields |
병합됨 |
additional_start |
additional.fields |
병합됨 |
has_target |
extensions.auth.type |
매핑됨: true → AUTHTYPE_UNSPECIFIED |
dvchost |
intermediary.asset.hostname |
직접 매핑됨 |
hostname |
intermediary.asset.hostname |
직접 매핑됨 |
dvchost |
intermediary.hostname |
직접 매핑됨 |
hostname |
intermediary.hostname |
직접 매핑됨 |
dvcpid |
intermediary.process.pid |
직접 매핑됨 |
ts |
metadata.event_timestamp |
MMM d HH:mm:ss로 파싱됨 |
has_principal |
metadata.event_type |
매핑된 값 (총 5개, 예: true → NETWORK_HTTP, true → NETWORK_DNS, true → `NETW... |
has_target |
metadata.event_type |
매핑됨: true → USER_UNCATEGORIZED |
product_event_type |
metadata.product_event_type |
직접 매핑됨 |
product_name |
metadata.product_name |
직접 매핑됨 |
version |
metadata.product_version |
직접 매핑됨 |
vendor_name |
metadata.vendor_name |
직접 매핑됨 |
app |
network.application_protocol |
직접 매핑됨 |
src |
network.dhcp.ciaddr |
직접 매핑됨 |
deviceDirection |
network.direction |
매핑됨: 0 → INBOUND, 1 → OUTBOUND |
dns_question |
network.dns.questions |
병합됨 |
requestClientApplication |
network.http.user_agent |
직접 매핑됨 |
ip_protocol_out |
network.ip_protocol |
직접 매핑됨 |
bytesIn |
network.received_bytes |
직접 매핑됨 |
bytesOut |
network.sent_bytes |
직접 매핑됨 |
deviceExternalId |
principal.asset.asset_id |
직접 매핑됨 |
src |
principal.asset.ip |
병합됨 |
src |
principal.ip |
병합됨 |
spt |
principal.port |
직접 매핑됨 |
security_result_action |
security_result.action |
병합됨 |
act |
security_result.action_details |
직접 매핑됨 |
category |
security_result.category |
병합됨 |
cat |
security_result.category_details |
병합됨 |
cs5 |
security_result.description |
직접 매핑됨 |
blockLength_label |
security_result.detection_fields |
병합됨 |
blockType_label |
security_result.detection_fields |
병합됨 |
cs1_var |
security_result.detection_fields |
병합됨 |
cs2_var |
security_result.detection_fields |
병합됨 |
cs3_var |
security_result.detection_fields |
병합됨 |
cs4_var |
security_result.detection_fields |
병합됨 |
cs5_var |
security_result.detection_fields |
병합됨 |
cs6_var |
security_result.detection_fields |
병합됨 |
suser_var |
security_result.detection_fields |
병합됨 |
cs6 |
security_result.rule_id |
직접 매핑됨 |
severity |
security_result.severity_details |
직접 매핑됨 |
outcome |
security_result.summary |
직접 매핑됨 |
destinationDnsDomain |
target.asset.hostname |
직접 매핑됨 |
dst |
target.asset.ip |
병합됨 |
fname |
target.file.full_path |
직접 매핑됨 |
fileType |
target.file.mime_type |
직접 매핑됨 |
fileHash |
target.file.sha256 |
직접 매핑됨 |
fsize |
target.file.size |
직접 매핑됨 |
destinationDnsDomain |
target.hostname |
직접 매핑됨 |
host |
target.hostname |
직접 매핑됨 |
dst |
target.ip |
병합됨 |
dpt |
target.port |
직접 매핑됨 |
request |
target.url |
직접 매핑됨 |
| 해당 사항 없음 | extensions.auth.type |
상수: AUTHTYPE_UNSPECIFIED |
| 해당 사항 없음 | metadata.event_type |
상수: NETWORK_HTTP |
| 해당 사항 없음 | network.direction |
상수: INBOUND |
BLOCK |
security_result.action |
변경 로그에서 매핑됨 |
SOFTWARE_PUA |
security_result.category |
변경 로그에서 매핑됨 |
NETWORK_COMMAND_AND_CONTROL |
security_result.category |
변경 로그에서 매핑됨 |
TOR_EXIT_NODE |
security_result.category |
변경 로그에서 매핑됨 |
PHISHING |
security_result.category |
변경 로그에서 매핑됨 |
NETWORK_MALICIOUS |
security_result.category |
변경 로그에서 매핑됨 |
request |
network.http.referral_url |
변경 로그에서 매핑됨 |
destinationDnsDomain |
network.dns.questions.name |
변경 로그에서 매핑됨 |
security_result.action |
BLOCK |
변경 로그에서 매핑됨 |
변경 로그
도움이 더 필요하신가요? 커뮤니티 회원 및 Google SecOps 전문가에게 문의하여 답변을 받으세요.