| name | implementing-microsegmentation-with-guardicore |
| description | 使用 Akamai Guardicore Segmentation 实施微分段,映射应用程序依赖关系,创建细粒度网络策略, 可视化东西向流量,并在数据中心和云环境中的工作负载之间强制执行最小权限通信。
|
| domain | cybersecurity |
| subdomain | zero-trust-architecture |
| tags | ["microsegmentation","guardicore","akamai","zero-trust","east-west-traffic","network-segmentation","lateral-movement"] |
| version | 1.0 |
| author | mahipal |
| license | Apache-2.0 |
使用 Guardicore 实施微分段(Microsegmentation)
适用场景
- 实施东西向流量控制以防止数据中心内的横向移动(Lateral Movement)
- 在编写分段策略前需要对网络通信模式进行应用级可见性分析
- 跨异构环境(VM、容器、裸金属、云)对工作负载进行分段
- 合规框架(PCI DSS、HIPAA)要求网络分段验证
- 在网络层部署零信任(Zero Trust),具备进程级粒度
不适用于仅做边界安全(使用传统防火墙)、工作负载少于 50 个且 VLAN/安全组已足够的环境,或网络团队没有能力持续进行策略管理的场景。
前置条件
- Akamai Guardicore Segmentation 许可证(Enterprise 或 Premium)
- 已部署 Guardicore Management Server(本地或 SaaS)
- 目标工作负载(Linux、Windows、Kubernetes)的 Agent 部署访问权限
- 网络可见性:SPAN/TAP 端口或 VPC 流日志(用于无 Agent 采集)
- 应用程序负责人参与依赖关系验证
工作流程
步骤 1:在工作负载上部署 Guardicore Agent
安装 Agent 以采集进程级网络通信数据。
curl -sSL https://management.guardicore.com/api/v3.0/agents/download/linux \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-o gc-agent-installer.sh
chmod +x gc-agent-installer.sh
sudo ./gc-agent-installer.sh \
--management-url=https://management.guardicore.com \
--site-id=datacenter-east \
--label="web-tier"
cat > gc-daemonset.yaml << 'EOF'
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: guardicore-agent
namespace: guardicore
spec:
selector:
matchLabels:
app: gc-agent
template:
metadata:
labels:
app: gc-agent
spec:
hostNetwork: true
hostPID: true
containers:
- name: gc-agent
image: guardicore/agent:latest
securityContext:
privileged: true
env:
- name: GC_MANAGEMENT_URL
value: "https://management.guardicore.com"
- name: GC_API_KEY
valueFrom:
secretKeyRef:
name: gc-credentials
key: api-key
volumeMounts:
- mountPath: /host
name: host-root
volumes:
- name: host-root
hostPath:
path: /
EOF
kubectl apply -f gc-daemonset.yaml
curl -s "https://management.guardicore.com/api/v3.0/agents?status=active" \
-H "Authorization: Bearer ${GC_API_TOKEN}" | python3 -m json.tool
步骤 2:使用 Reveal 映射应用程序依赖关系
使用 Guardicore Reveal 发现并可视化应用程序通信模式。
curl -s "https://management.guardicore.com/api/v3.0/connections" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-d '{
"time_range": {"from": "2026-02-17T00:00:00Z", "to": "2026-02-24T00:00:00Z"},
"filter": {
"source_label": "web-tier",
"destination_label": "app-tier"
},
"aggregation": "process",
"limit": 1000
}' | python3 -m json.tool
curl -s "https://management.guardicore.com/api/v3.0/maps/export" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-d '{
"format": "json",
"labels": ["web-tier", "app-tier", "db-tier"],
"time_range": "7d"
}' -o app-dependency-map.json
步骤 3:创建分段标签和策略
定义标签并围绕应用程序创建环形隔离策略。
curl -X POST "https://management.guardicore.com/api/v3.0/labels" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"name": "PCI-CDE",
"description": "Cardholder Data Environment workloads",
"criteria": {"ip_ranges": ["10.10.0.0/16"]},
"color": "#FF0000"
}'
curl -X POST "https://management.guardicore.com/api/v3.0/policies" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"name": "Web-to-App Allowed",
"action": "ALLOW",
"priority": 100,
"source": {"labels": ["web-tier"]},
"destination": {"labels": ["app-tier"]},
"services": [
{"protocol": "TCP", "port": 8080},
{"protocol": "TCP", "port": 8443}
],
"log": true,
"enabled": true,
"section": "application-segmentation"
}'
curl -X POST "https://management.guardicore.com/api/v3.0/policies" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"name": "Block Web-to-DB Direct",
"action": "DENY",
"priority": 200,
"source": {"labels": ["web-tier"]},
"destination": {"labels": ["db-tier"]},
"services": [{"protocol": "TCP", "port_range": "1-65535"}],
"log": true,
"alert": true,
"enabled": true
}'
curl -X POST "https://management.guardicore.com/api/v3.0/policies" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"name": "PCI CDE Ring Fence",
"action": "DENY",
"priority": 50,
"source": {"labels": ["!PCI-CDE"]},
"destination": {"labels": ["PCI-CDE"]},
"services": [{"protocol": "TCP", "port_range": "1-65535"}],
"log": true,
"alert": true,
"enabled": true
}'
步骤 4:在 Reveal 模式下测试策略后再执行
在不阻断流量的情况下模拟策略执行。
curl -X PATCH "https://management.guardicore.com/api/v3.0/policies/POLICY_ID" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-d '{"enforcement_mode": "REVEAL"}'
curl -s "https://management.guardicore.com/api/v3.0/violations" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-d '{
"time_range": "24h",
"policy_id": "POLICY_ID",
"limit": 100
}' | python3 -c "
import json, sys
data = json.load(sys.stdin)
for v in data.get('violations', []):
print(f\"{v['source_ip']}:{v['source_process']} -> {v['dest_ip']}:{v['dest_port']} [{v['action']}]\")
"
curl -X PATCH "https://management.guardicore.com/api/v3.0/policies/POLICY_ID" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-d '{"enforcement_mode": "ENFORCE"}'
步骤 5:监控和响应策略违规
配置告警并持续监控分段违规情况。
curl -X POST "https://management.guardicore.com/api/v3.0/integrations/syslog" \
-H "Authorization: Bearer ${GC_API_TOKEN}" \
-d '{
"name": "Splunk SIEM",
"host": "splunk-syslog.company.com",
"port": 514,
"protocol": "TCP",
"format": "CEF",
"events": ["policy_violation", "agent_status", "deception_alert"]
}'
核心概念
| 术语 | 定义 |
|---|
| 微分段(Microsegmentation) | 一种网络安全技术,围绕单个工作负载或应用程序创建细粒度安全区域,以控制东西向流量 |
| Reveal 模式 | Guardicore 的模拟模式,记录策略决策但不执行,允许在阻断前进行验证 |
| 环形隔离策略(Ring-Fence Policy) | 限制定义资产组(如 PCI CDE)所有进出流量的隔离策略 |
| 应用程序依赖关系图(Application Dependency Map) | 工作负载之间已发现网络通信模式的可视化表示,显示进程、端口和协议 |
| 东西向流量(East-West Traffic) | 在数据中心内工作负载之间横向流动的网络流量,与跨越边界的南北向流量相对 |
| 进程级可见性(Process-Level Visibility) | Guardicore 识别工作负载上哪个进程发起或接收网络连接的能力 |
工具与系统
- Akamai Guardicore Segmentation:基于 Agent 的微分段平台,具备应用可视化和策略执行能力
- Guardicore Reveal:网络可视化引擎,映射混合环境中的应用程序依赖关系
- Guardicore Centra:用于策略创建、监控和事件调查的管理控制台
- Guardicore Agents:部署在工作负载上的轻量级 Agent,采集进程级网络遥测数据
- Guardicore Insight:用于合规报告和分段效果评估的分析引擎
常见场景
场景:电商平台的 PCI DSS 微分段
场景背景:一家电商公司必须将其持卡人数据环境(Cardholder Data Environment,CDE)与企业网络其余部分隔离,以满足 PCI DSS 合规要求。CDE 跨越本地和 AWS 上的 200 台服务器。
方法:
- 在所有 200 台 CDE 服务器和 300 台非 CDE 服务器上部署 Guardicore Agent
- 运行 Reveal 持续 2 周,映射进出 CDE 的所有通信模式
- 识别并修复异常流量(如开发服务器连接到生产 CDE)
- 创建环形隔离策略,默认阻断所有非 CDE 到 CDE 的流量
- 为已验证的 CDE 通信路径创建明确的允许策略
- 在 Reveal 模式下测试 1 周,验证没有合法流量被阻断
- 切换到执行模式并监控违规情况
- 生成 PCI DSS 分段验证报告,展示已执行的控制措施
常见陷阱:在旧系统(Windows Server 2012)上部署 Agent 可能需要手动安装。环形隔离策略必须考虑管理流量(监控、补丁、备份)。从宽泛的允许规则开始,逐步收紧。应用程序负责人必须在执行前验证依赖关系图。
输出格式
微分段部署报告
==================================================
组织:E-Commerce Corp
报告日期:2026-02-23
AGENT 部署情况:
工作负载总数: 500
已安装 Agent: 487 (97.4%)
活跃 Agent: 482 (98.9%)
无 Agent(流日志): 13
策略覆盖情况:
策略总数: 45
允许规则: 38
拒绝规则: 7
Reveal 模式: 3
已执行: 42
流量分析(7 天):
观察到的总流量: 2,456,789
匹配允许规则: 2,441,234 (99.4%)
匹配拒绝规则: 15,555 (0.6%)
未分类流量: 0
PCI CDE 隔离情况:
CDE 工作负载: 200
环形隔离违规: 0(近 30 天)
授权 CDE 入口点: 4
已阻断横向移动路径: 95%