Catalog

Zscaler ZPA — User Guide

Zscaler ZPA — User Guide

Pack nameZscaler ZPA
Version1.0.0
VendorZscaler
CapabilitiesParser · Streaming Rules · Correlation Rules · Dashboard
CategoriesNetwork Security · Zero Trust · Identity and Access Management · Cloud Security

Overview

Pack cung cấp giám sát bảo mật cho Zscaler Private Access (ZPA) — giải pháp Zero Trust Network Access (ZTNA), bao gồm:

  • Parser — chuẩn hóa ZPA LSS (Log Streaming Service) dual-format: JSON connection logs và CSV user status logs sang ECS
  • 5 streaming rules — phát hiện connection denied (no policy, SAML expired, generic), high data transfer, và user authenticated events
  • 2 correlation rules — phát hiện denial burst cho một user và authentication từ nhiều quốc gia (impossible travel)
  • 1 dashboard — tổng quan ZPA connections, denial analysis, authentication patterns, data transfer, phân bố theo country và protocol

Yêu cầu trước khi cài đặt

Yêu cầuChi tiết
Zscaler ZPASubscription bao gồm Log Streaming Service (LSS)
LSS ConfigurationCấu hình LSS gửi log về log receiver của platform
Log formatZPA LSS dual-format: JSON (connection logs) + CSV (user status logs)
TimestampISO 8601 (2026-06-23T08:30:00.000Z) trong field timestamp của JSON envelope

Định dạng log bắt buộc

{
  "timestamp": "2026-06-23T08:30:00.000Z",
  "host": "zpa-lss-receiver",
  "message": "<ZPA LSS log line — JSON hoặc CSV>"
}

Parser nhận diện tự động: nếu message bắt đầu bằng { → parse JSON connection log; nếu message chứa zpa-lss: → parse CSV user status log.

Ví dụ log hợp lệ

Connection log (JSON) — active connection:

{"timestamp":"2026-06-23T08:30:00.000Z","host":"zpa-lss-receiver","message":"{\"LogTimestamp\":\"Mon Jun 23 08:30:00 2026\",\"Customer\":\"example-corp\",\"ConnectionStatus\":\"active\",\"IPProtocol\":6,\"Username\":\"john.doe@example.com\",\"ServicePort\":443,\"ClientPublicIp\":\"203.0.113.45\",\"ClientCountryCode\":\"VN\",\"Policy\":\"Allow_ZPA\",\"Connector\":\"connector-sg-01\",\"Host\":\"internal-app.example.com\",\"Application\":\"internal-app\",\"AppGroup\":\"prod-apps\",\"TotalBytesRx\":1048576,\"TotalBytesTx\":2097152,\"TimestampConnectionStart\":\"Mon Jun 23 08:29:50 2026\",\"IdPName\":\"Okta\"}"}

Connection log (JSON) — denied (no policy):

{"timestamp":"2026-06-23T08:31:00.000Z","host":"zpa-lss-receiver","message":"{\"LogTimestamp\":\"Mon Jun 23 08:31:00 2026\",\"Customer\":\"example-corp\",\"ConnectionStatus\":\"rejected\",\"InternalReason\":\"No policy found\",\"IPProtocol\":6,\"Username\":\"jane.doe@example.com\",\"ServicePort\":80,\"ClientPublicIp\":\"198.51.100.20\",\"ClientCountryCode\":\"SG\",\"Policy\":\"\",\"Host\":\"restricted-app.example.com\",\"Application\":\"restricted-app\",\"TotalBytesRx\":0,\"TotalBytesTx\":0,\"TimestampConnectionStart\":\"Mon Jun 23 08:31:00 2026\",\"IdPName\":\"Okta\"}"}

User status log (CSV):

{"timestamp":"2026-06-23T08:32:00.000Z","host":"zpa-lss-receiver","message":"zpa-lss:Mon Jun 23 08:32:00 2026,example-corp,john.doe@example.com,authenticated,203.0.113.45,US,ZPA App,connector-us-01,Okta,"}

InternalReason xác định nguyên nhân deny: "No policy found"event.action = connection_denied, event.category = network; "SAML token expired"event.category = authentication.


Cài đặt

  1. Vào Marketplace → tìm "Zscaler ZPA Security"Install
  2. Kiểm tra Parserszscaler-zpa-parser đang active
  3. Kiểm tra Detection Rules → filter tag Zscaler → 7 rules đang enabled
  4. Mở DashboardsZscaler ZPA Security Overview

Parser — Các trường ECS chính

ECS FieldNguồnMô tả
event.actionDerived từ ConnectionStatus / InternalReasonconnection_denied, connection_active, user_authenticated, user_disconnected
event.outcomeDerivedfailure (denied) / success (active/authenticated)
event.categoryDerived từ InternalReasonnetwork (no policy) / authentication (SAML/token)
user.emailUsername (JSON) / CSV fieldEmail của ZPA user
source.ipClientPublicIpPublic IP của ZPA client
source.geo.country_iso_codeClientCountryCodeMã quốc gia của client (ISO 3166-1 alpha-2)
destination.ipServer (connector IP)IP của ZPA connector / application server
destination.portServicePortPort của ứng dụng nội bộ
network.transportIPProtocoltcp (6) hoặc udp (17)
network.bytesTotalBytesRx + TotalBytesTxTổng bytes transferred
host.hostnameHost fieldHostname của ứng dụng nội bộ được truy cập
observer.vendor"Zscaler"Luôn là Zscaler
observer.product"ZPA"Luôn là ZPA

Detection Rules

Streaming Rules (5 rules — real-time)

#RuleSeverityMô tả
1ZPA Connection Denied — No Policy FoundMediumKết nối bị từ chối do không tìm thấy ZPA policy — nghi ngờ unauthorized access attempt
2ZPA Connection Denied — SAML Token ExpiredMediumKết nối bị từ chối do SAML token hết hạn — session management issue hoặc account compromise
3ZPA Connection Denied — Any ReasonLowKết nối bị từ chối (generic) — bao phủ tất cả lý do deny
4ZPA High Data Transfer ConnectionMediumKết nối chuyển > 100 MB data — nghi ngờ data exfiltration qua ZPA tunnel
5ZPA User AuthenticatedLowUser xác thực thành công qua ZPA — baseline authentication monitoring

Correlation Rules (2 rules — pattern)

#RuleSeverityMô tảNgưỡngLookback
6ZPA Connection Denial Burst — Single UserHighCùng một user bị deny ≥ 10 lần — brute force hoặc stolen credential đang được test≥ 10 events / user15 phút
7ZPA User Authenticated from Multiple CountriesHighCùng một user authenticate từ ≥ 2 quốc gia khác nhau — account takeover hoặc credential sharing≥ 2 countries / user20 phút

Dashboard — Zscaler ZPA Security Overview

#ChartLoạiMô tả
1ZPA Events Over TimeLINETrend ZPA connection events theo thời gian, phân loại theo action
2Total Connection DenialsMETRICTổng số kết nối bị từ chối
3Successful AuthenticationsMETRICTổng số user authentication thành công
4Active ConnectionsMETRICTổng số kết nối active
5User DisconnectionsMETRICTổng số kết nối kết thúc
6Event Action DistributionPIEPhân bố loại action (denied, active, authenticated, disconnected)
7Denial by CategoryPIEPhân bố lý do deny (network policy vs authentication)
8Top Users with DenialsBARUser bị deny nhiều nhất
9Authentication by CountryBARPhân bố authentication theo quốc gia
10Top Destination ApplicationsBARỨng dụng nội bộ được truy cập nhiều nhất
11Connections by ProtocolBARPhân bố protocol (TCP vs UDP)
12Recent ZPA EventsTABLE50 ZPA event gần nhất

SOC Triage nhanh:

  1. Metric 2 (Total Denials) tăng đột ngột → xem Chart 8 (Top Users with Denials) → kiểm tra correlation rule 6
  2. Chart 9 (Auth by Country) → quốc gia bất thường (ngoài VN/SG) → kiểm tra correlation rule 7 (impossible travel)
  3. Rule 4 (High Data Transfer) alert → network.bytes > 100MB → nghi ngờ exfiltration qua ZPA tunnel
  4. Chart 7 (Denial by Category) → nhiều authentication denials → SAML/IdP issue hoặc credential compromise

Troubleshooting

Triệu chứngNguyên nhânCách xử lý
Không có eventZPA LSS chưa cấu hình hoặc không gửi về platformKiểm tra ZPA Admin Portal → LSS configuration đang enabled và gửi về đúng endpoint
Chỉ có connection logs, không có user statusCSV log format không được nhận diệnMessage phải bắt đầu bằng zpa-lss: cho CSV path
user.email trốngUsername field trống trong LSS logKiểm tra ZPA user có IdP identity đầy đủ — anonymous connections không có Username
network.bytes = 0Connection bị deny trước khi transfer dataBehavior bình thường — denied connections không có data transfer
source.geo.country_iso_code trốngClientCountryCode không có trong LSS logKiểm tra ZPA LSS log format version — country code có từ ZPA version nhất định
Correlation rule 7 không triggerChỉ có 1 quốc gia trong 20 phútRule cần ≥ 2 distinct country codes trong lookback window cho cùng user

Checklist parser:

  • JSON envelope có đủ: timestamp, host, message
  • ZPA LSS đang stream log về log receiver của platform
  • Connection log JSON format: message bắt đầu bằng {
  • User status log CSV format: message chứa zpa-lss:
  • zscaler-zpa-parser.yaml đang active trong Parsers
  • ZPA user đã cấu hình IdP (Okta, Azure AD) để có Username field

Hỗ trợ

  • Lỗi platform: Mở ticket tại SecOps support portal
  • Góp ý pack: Dùng tính năng feedback trên trang Marketplace
  • Tuning rule: Slack #detection-engineering

Last updated: 2026-06-23 · Vendor: Zscaler · Author: secops-team