跳到主要内容

保护网络

AP 网络安全 · 知识点 3

本主题的视频课程 打开视频页面
9:26

保护网络

你向银行发送一条消息。它到达了。回复回来了。一切看起来都很正常。但有人静静地坐在你和你之间,阅读每条消息…

英语旁白 · 英中内嵌字幕

3.1

网络漏洞与攻击

教学大纲

学习目标 3.1.A: 识别常见的网络攻击。

  • 3.1.A.1 默认网关使用地址解析协议(ARP)来建立一张表,将互联网协议(IP)地址与媒体访问控制(MAC)地址配对。ARP 中毒攻击是指攻击者向默认网关发送伪造的 ARP 数据包,修改该表,使攻击者的设备接收本应发往目标设备的流量,即将目标的 IP 地址链接到攻击者的 MAC 地址。伪造 MAC 地址被称为 MAC 欺骗。这是一种路径中间攻击(或称中间人攻击)的例子,即攻击者中断两方之间的数据流,捕获双方的数据,并在转发前复制或篡改数据。双方都以为自己在直接通信,但实际上他们各自都在与秘密拦截其消息的攻击者通信。
  • 3.1.A.2 MAC 泛洪攻击是指攻击者向目标交换机发送大量以太网帧,每个帧都带有不同的 MAC 地址。这可能导致交换机进入广播模式,随后攻击者可以收集网络上所有被广播的帧,从而可能获取敏感信息。这是窃听(或嗅探)的一个例子,即攻击者捕获传输中的数据并记录或复制这些数据。
  • 3.1.A.3 DNS 中毒攻击是指攻击者伪装成权威名称服务器(NS),在 DNS 服务器上植入虚假的 DNS 记录,将浏览器流量重定向到旨在窃取凭据的恶意网站。这是凭证收集的一个例子,即攻击者建立一个看似真实的虚假登录网站。不知情的用户输入其真实凭据,攻击者随即捕获并使用这些凭据。
  • 3.1.A.4 Smurf 攻击试图通过 Internet 控制消息协议(ICMP)请求淹没网络。这是一种拒绝服务(DoS)攻击的类型,会导致系统或资源对授权用户不可用。在 Smurf 攻击期间,攻击者向网络的广播地址发送许多以受害者地址为源地址的 ICMP 请求。网络的网关随后将这些请求发送给网络中的所有设备。网络中的每个设备都会回复到受害者地址,产生大量的流量,可能会阻塞合法消息。当多个设备同时攻击同一目标时,称为分布式拒绝服务(DDoS)攻击。

学习目标 3.1.B: 解释攻击者如何利用网络漏洞窃取、干扰或破坏网络通信。

  • 3.1.B.1 攻击者可以向网络发送恶意流量以造成 DoS 攻击、绘制内部网络结构或冒充合法设备。没有防火墙或防火墙配置不当的网络容易受到此类攻击。
  • 3.1.B.2 已经攻破某台设备的攻击者通常会利用其访问权限去攻陷局域网(LAN)上的其他设备。
  • 3.1.B.3 物理接入数据端口的攻击者可以通过交换机端口获得对 LAN 的访问权限,除非启用了端口安全功能。这使得攻击者能够发起 DoS 攻击或执行 MAC 泛洪及 MAC 欺骗攻击。
  • 3.1.B.4 站在物理安全区域之外的攻击者可以接收到无线接入点发出的信号和信标帧,即使该接入点在物理空间外广播。这使他们能够收集有关无线网络的信息,并尝试对其进行窃听和密码学攻击。
  • 3.1.B.5 攻击者可能尝试加入网络以便从网络内部发起攻击。不对设备和用户进行身份验证的网络更容易让攻击者加入。
  • 3.1.B.6 如果存在开放的网络端口,攻击者可以将无线接入点插入该端口,创建一个 rogue 接入点。攻击者可以利用这个 rogue 接入点无线访问内部网络(甚至可能从物理空间外部访问)。这使攻击者能够绕过任何防火墙,直接访问 LAN。
  • 3.1.B.7 攻击者可能尝试破解无线加密,拦截、窃取或破坏网络上的数据。

学习目标 3.1.C: 评估和记录网络漏洞带来的风险。

  • 3.1.C.1 网络上的漏洞可能导致攻击者能够拦截和篡改传输中的数据、发起 DoS 攻击,或在网络上横向移动以获取更多敏感或关键系统的访问权限。网络漏洞可能对机密性、完整性和可用性构成风险。
  • 3.1.C.2 存在自动化漏洞扫描器,可用于检查网络、设备和应用程序中已知的漏洞。这些扫描器会生成报告,通常包括检测到的漏洞、严重程度以及缓解建议。
  • 3.1.C.3 成功利用网络漏洞通常需要高级的技术能力和知识。这会影响利用的可能性。
  • 3.1.C.4 网络漏洞带来的高风险允许攻击者轻易地通过捕获网络流量、冒充网络上的合法设备或发起 DoS 攻击来产生重大影响。
    • 3.1.C.4 的示例:
      • 一个组织拥有一个单一且未分段的内部网络,可通过加密较弱的无线网络访问,并且在该网络上运行着其专有的 Web 应用程序服务器。
  • 3.1.C.5 网络漏洞带来的中等风险可能包括那些赋予攻击者获取网络上系统或设备信息的能力的漏洞。
    • 3.1.C.5 的示例:
      • 一个组织的对外防火墙未配置为阻止外部 ICMP 流量。
  • 3.1.C.6 网络漏洞带来的低风险包括那些难以利用且很可能对组织产生最小负面影响的漏洞。
    • 3.1.C.6 的示例:
      • 一个组织的无线接入点广播包含网络服务集标识符(SSID)和无线加密协议的信标帧。

来源:College Board AP 课程与考试说明

English
A man-in-the-middle attack
DDoS: a botnet floods a server

A network connects devices so they can share data - and every connection is a possible way in. You must know the classic network attacks and the tricks behind them.

  • ARP poisoning 地址解析投毒 - the address resolution protocol (ARP) 地址解析协议 pairs IP addresses with hardware MAC addresses 物理地址. An adversary sends fake ARP messages so traffic meant for the target flows to the adversary instead. This is an on-path attack 中间人攻击 (also called man-in-the-middle): the adversary secretly sits between two parties, reading and even altering their messages.
  • MAC flooding 物理地址泛洪 - many fake source addresses may exhaust a switch 交换机 forwarding table. Some switches then flood unknown-destination frames to other ports, which may enable eavesdropping 窃听. Known-destination traffic and configured protections can behave differently; capturing all traffic is not guaranteed.
  • DNS poisoning 域名投毒 - planting a fake record on a domain name system (DNS) 域名系统 server redirects users to a malicious site to steal credentials (credential harvesting 凭据收集).
  • Smurf attack - sending ICMP echo requests to a network's broadcast address with the victim's address forged (spoofed) as the source, so every device on that network replies to the victim. It is a denial of service (DoS) 拒绝服务 attack; when many machines attack at once it becomes a distributed denial of service (DDoS) 分布式拒绝服务.

Adversaries exploit weak networks to flood, map, or spoof devices. A physical data port with no port security lets an attacker plug in; an open port lets them install a rogue access point 非法接入点 that bypasses the firewall entirely. We rate network risk by impact and by how much skill the exploit needs.

To find weaknesses before an adversary does, organisations run an automated vulnerability scanner 自动漏洞扫描器: a tool that checks networks, devices, and applications against a database of known vulnerabilities, then produces a report listing each one found, how severe it is, and a recommended mitigation 缓解措施. Fixing the highest-severity items first is a core part of managing network risk.

A man-in-the-middle attack sits between a user and a server
A man-in-the-middle attack sits between a user and a server
探索

根据其证据识别网络攻击

每种网络攻击都会留下独特的痕迹:ARP欺骗 = 一个IP对应两个MAC地址;MAC泛洪 = 大量新MAC地址激增;DNS缓存投毒 = 误导性的Web流量;Smurf/DoS攻击 = 淹没并阻断合法流量的洪水。

词汇 训练
English 中文 拼音
ARP poisoning/ɑːp ˈpɔɪzənɪŋ/ 地址解析投毒 dì zhǐ jiě xī tóu dú
address resolution protocol (ARP)/əˈdres ˌrezəˈluːʃn ˈprəʊtəkɒl/ 地址解析协议 dì zhǐ jiě xī xié yì
MAC addresses/mæk əˈdresɪz/ 物理地址 wù lǐ dì zhǐ
on-path attack/ɒn pæθ əˈtæk/ 中间人攻击 zhōng jiān rén gōng jī
MAC flooding/mæk ˈflʌdɪŋ/ 物理地址泛洪 wù lǐ dì zhǐ fàn hóng
switch/swɪtʃ/ 交换机 jiāo huàn jī
eavesdropping/ˈiːvzdrɒpɪŋ/ 窃听 qiè tīng
DNS poisoning/ˌdiː en ˈes ˈpɔɪzənɪŋ/ 域名投毒 yù míng tóu dú
domain name system (DNS)/dəˈmeɪn neɪm ˈsɪstəm/ 域名系统 yù míng xì tǒng
credential harvesting/krɪˈdenʃl ˈhɑːvɪstɪŋ/ 凭据收集 píng jù shōu jí
denial of service (DoS)/dɪˈnaɪəl ɒv ˈsɜːvɪs/ 拒绝服务 jù jué fú wù
distributed denial of service (DDoS)/ˈdɪstrɪbjuːtɪd dɪˈnaɪəl ɒv ˈsɜːvɪs/ 分布式拒绝服务 fēn bù shì jù jué fú wù
rogue access point/rəʊɡ ˈækses pɔɪnt/ 非法接入点 fēi fǎ jiē rù diǎn
automated vulnerability scanner/ˈɔːtəmeɪtɪd ˌvʌlnərəˈbɪlɪti ˈskænə/ 自动漏洞扫描器 zì dòng lòu dòng sǎo miáo qì
mitigation/ˌmɪtɪˈɡeɪʃn/ 缓解措施 huǎn jiě cuò shī
3.2

保护网络:管理性控制与无线安全

教学大纲

学习目标 3.2.A: 识别与网络安全相关的管理控制措施。

  • 3.2.A.1 路由器安全策略将制定组织网络中路由器的最低配置标准,可能包括:
    • 禁止使用本地用户账户(所有路由器登录必须使用经批准的认证服务器。)
    • 禁用不必要的服务(例如 Telnet)
    • 要求启用防火墙(组织可选择独立于路由器的专用防火墙设备。)
  • 3.2.A.2 交换机安全策略将制定组织网络中交换机的最低配置标准,可能包括:
    • 禁止使用本地用户账户(所有交换机登录必须使用经批准的认证服务器。)
    • 要求启用端口安全功能。
    • 使用 MAC 地址过滤
  • 3.2.A.3 虚拟专用网 (VPN) 政策将详细说明员工使用 VPN 访问组织内部网络的最低安全要求,可能包括:
    • 允许使用 VPN 访问组织内部网络的组织角色列表
    • 使用 VPN 的员工的认证要求(例如公/私钥系统或多因素认证 MFA)
    • 禁止使用分路隧道(也称为双隧道)
  • 3.2.A.4 无线安全策略将确立组织内无线网络的安全要求,可能包括:
    • 要求用户通过连接到经批准认证服务器的可扩展认证协议 (EAP) 对无线网络进行身份验证
    • 要求所有无线流量使用 AES 加密进行加密,且密钥长度不低于指定最小值
    • 禁用无线接入点上的信标帧

学习目标 3.2.B: 配置无线网络安全功能。

  • 3.2.B.1 组织可以禁用无线接入点 (WAP) 的信标帧广播,以增加攻击者发现其无线网络并获取其基本属性的难度。
  • 3.2.B.2 组织可以控制 WAP 的信号发射方向和强度,确保信号不会超出接入点设计覆盖的物理空间范围。
  • 3.2.B.3 组织应启用强效无线加密协议,以确保被拦截的无线帧不会被攻击者读取。
    • WEP、WPS 和原始 WPA 无线加密协议存在已知漏洞,安全性较低。
    • WPA3 是目前最强的无线加密算法。
  • 3.2.B.4 组织可以启用 MAC 地址过滤以防止未经授权的设备访问网络,并要求用户在加入网络时进行身份验证。

来源:College Board AP 课程与考试说明

English

Good network security starts with written policies that set a minimum standard: a router security policy and switch security policy ban local accounts and require port security; a VPN policy sets authentication rules and forbids split tunneling 分离隧道; and a wireless security policy requires strong encryption and authenticated access.

For wireless networks, use authenticated access and suitable encryption, such as WPA3 Wi-Fi 保护接入第三代 where supported; avoid obsolete WEP and original WPA. Hiding the network name does not stop beacon transmissions or reliably conceal the network. Signal-strength limits and MAC filtering are supplementary measures: radio reception can extend beyond a building, and an observed device address can be spoofed.

Wireless security protocols from weakest to strongest
Wireless security protocols from weakest to strongest
词汇 训练
English 中文 拼音
split tunneling/splɪt ˈtʌnəlɪŋ/ 分离隧道 fēn lí suì dào
WPA3/ˌdʌbljuː piː eɪ ˈθriː/ Wi-Fi 保护接入第三代 bǎo hù jiē rù dì sān dài
3.3

保护网络:网络分段

教学大纲

学习目标 3.3.A: 识别用于网络分段的技术。

  • 3.3.A.1 防火墙区域和规则可用于创建隔离子网(也称为非军事区,或 DMZ)——一种位于公共外部网络(如互联网)与内部私有网络之间的网络段。隔离子网通常是比内部私有网络安全性更低的区域,它通常托管组织的面向公众的资源,将其与内部网络分离开来。
  • 3.3.A.2 子网划分可根据 IP 寻址创建不同的子网。如果设备被对手攻陷,子网可以将安全漏洞限制在特定范围内,从而减少暴露的设备数量。
  • 3.3.A.3 交换机可用于创建 VLAN,逻辑上分离物理连接到中心交换机的设备。

学习目标 3.3.B: 解释为什么网络分段可以提高网络安全。

  • 3.3.B.1 网络分段是指将网络划分为更小的、相互隔离的段或子网络(子网)的过程。
  • 3.3.B.2 将网络划分为更小的子网可以隔离网络流量,从而防止针对一个子网的攻击影响其他子网上的设备。
  • 3.3.B.3 网络分段允许对网络的不同段应用不同的安全策略和控制措施,从而实现高安全区域和低安全区域的划分。
  • 3.3.B.4 交换机上的端口安全可以通过限制分配给任何单个交换机端口的地址数量,来防止 MAC 地址泛洪。

来源:College Board AP 课程与考试说明

English

Network segmentation 网络分段 divides a network into controlled sections, often using subnets 子网. Enforced filtering between sections can limit access and incident spread; an address boundary alone does not guarantee isolation.

A key pattern is the screened subnet 屏蔽子网 (also called a DMZ 隔离区). It sits between the public internet and the private internal network, holding an organisation's public-facing servers in a lower-security zone - separated from the sensitive internal systems.

A screened subnet (DMZ) puts public servers between two firewalls, away from the private network
A screened subnet (DMZ) puts public servers between two firewalls, away from the private network

Segments can also be built with subnetting (by IP address) or VLANs 虚拟局域网 (logically separating devices on the same switch). Each segment can then get its own security policy - higher-security and lower-security zones.

Server racks: network segmentation isolates systems so one breach does not open everything
Server racks: network segmentation isolates systems so one breach does not open everything
词汇 训练
English 中文 拼音
Network segmentation/ˈnetwɜːk ˌseɡmənˈteɪʃn/ 网络分段 wǎng luò fēn duàn
subnets/ˈsʌbnets/ 子网 zǐ wǎng
screened subnet/skriːnd ˈsʌbnet/ 屏蔽子网 píng bì zǐ wǎng
DMZ/ˌdiː em ˈzed/ 隔离区 gé lí qū
VLANs/ˈviːlænz/ 虚拟局域网 xū nǐ jú yù wǎng
3.4

保护网络:防火墙

教学大纲

学习目标 3.4.A: 识别基于网络的防火墙类型。

  • 3.4.A.1 防火墙用于允许或拒绝进出网络的流量。防火墙本身是一种软件,可以托管在独立设备上,也可以集成到其他网络设备中,例如路由器。
  • 3.4.A.2 无状态防火墙根据数据包头部中的信息(如 IP 地址、端口和协议)过滤流量。
  • 3.4.A.3 有状态防火墙(也称为动态包过滤)跟踪通过防火墙的网络连接的状态,除了执行无状态防火墙的过滤外,还可以根据与连接相关的规则进行过滤。这允许对进出网络的内容拥有更多的控制权。
  • 3.4.A.4 下一代防火墙(NGFW)兼具典型无状态和有状态防火墙的功能,并具备额外的高级功能,例如入侵预防、深度包检测和按应用程序类型过滤。

学习目标 3.4.B: 解释防火墙如何使用访问控制列表来允许或拒绝进入或离开网络的流量。

  • 3.4.B.1 网络管理员创建一组规则,称为访问控制列表(ACL),防火墙利用该列表来允许或拒绝入站和出站网络流量。
  • 3.4.B.2 ACL 规则按顺序进行检查,第一个匹配条件的规则将针对指定数据被执行。
  • 3.4.B.3 典型的 ACL 将指定流量的方向(入站或出站)、过滤依据(IP 地址、逻辑端口、服务或应用程序)以及采取的操作(允许或拒绝)。

学习目标 3.4.C: 确定防火墙在网络中的有效部署位置。

  • 3.4.C.1 网络的每个段都应配备防火墙,以控制该段内数据的进出流向。
  • 3.4.C.2 由于各段内的数据和业务不同,其安全需求可能不同。每个防火墙的安全级别可以独立设置。
  • 3.4.C.3 内部网络与公共互联网之间的每个数据入口和出口点都应设有防火墙。

学习目标 3.4.D: 配置防火墙以管理网络流量流。

  • 3.4.D.1 防火墙的需求将规定应允许或拒绝来自哪些源或去往哪些目的地的何种类型的流量。
  • 3.4.D.2 防火墙的具体规则可以根据源或目的端口或 IP 地址、服务、协议或应用程序来允许或拒绝入站或出站流量。
    • 3.4.D.2 说明示例:
      • 允许来自 ALL 的入站 TCP 端口 22;(此规则将允许所有目的端口为 22 的入站 TCP 流量,即 SSH 协议的指定端口)
      • 拒绝来自 192.168.1.0/24 的入站 TCP 端口 80;(此规则将拒绝源自 IP 地址范围 192.168.1.0-192.168.1.255 的目的端口为 80 的入站 TCP 流量)
  • 3.4.D.3 规则按顺序实施,更改一组规则的顺序可能会改变被允许或被拒绝的流量。在建立规则顺序时必须考虑过滤优先级的先后顺序。
    • 3.4.D.3 说明示例:
      • 以下规则集将允许 SSH 流量并拒绝其他入站 TCP 流量
      • 规则 1:ALLOW 来自 ALL 的入站 TCP 端口 22;
      • 规则 2:DENY 来自 ALL 的入站 TCP ALL;
      • 反转这些规则的顺序将会拒绝所有入站 TCP 流量,包括 SSH 流量。

来源:College Board AP 课程与考试说明

English
How a firewall decides

A firewall 防火墙 allows or denies traffic entering or leaving a network. There are several kinds:

  • Stateless 无状态 - filters on packet headers alone (IP, port, protocol).
  • Stateful 有状态 - also tracks the state of each connection for finer control.
  • Next-generation (NGFW) - adds advanced features like intrusion prevention and deep packet inspection.

A firewall follows an access control list (ACL) 访问控制列表 - an ordered set of rules. Rules are checked in order, and the first match wins, so the order of rules changes which traffic gets through. Each rule specifies a direction, a thing to filter by (IP, port, service), and an action (permit or deny).

A firewall checks its ACL top to bottom; the first matching rule decides
A firewall checks its ACL top to bottom; the first matching rule decides

Worked example. A firewall has Rule 3: DENY TCP 443 from 192.168.*, and lower down Rule 7: ALLOW TCP 443 from ALL. A user at 192.168.45.37 cannot reach port 443 - even though Rule 7 would allow them - because Rule 3 matches first, and the first match wins. If this specific host should have HTTPS access, add an ALLOW for 192.168.45.37 above Rule 3 while retaining the broader DENY. Moving ALLOW-from-ALL above that DENY would allow the whole range. Choose rule order and scope to match the intended policy.

Firewalls belong at every point where data crosses between zones - at each network segment and at every gateway to the public internet.

Rack-mounted network switches with many ethernet cables
Real network hardware: a firewall is a device (or software) sitting where these cables meet the outside world
词汇 训练
English 中文 拼音
firewall/ˈfaɪəwɔːl/ 防火墙 fáng huǒ qiáng
Stateless/ˈsteɪtləs/ 无状态 wú zhuàng tài
Stateful/ˈsteɪtfl/ 有状态 yǒu zhuàng tài
access control list (ACL)/ˈækses kənˈtrəʊl lɪst/ 访问控制列表 fǎng wèn kòng zhì liè biǎo
3.5

检测网络攻击

教学大纲

学习目标 3.5.A: 识别用于检测网络攻击的自动化安全工具类型。

  • 3.5.A.1 自动检测工具分析从组织网络和设备(如交换机、路由器、服务器、防火墙和用户计算机)收集的数据。这些数据通常以日志文件的形式收集。
  • 3.5.A.2 网络入侵检测系统(NIDS)是一种自动化工具,通过分析数据来确定网络上是否正在发生恶意活动。当检测到攻击时,它会生成警报。
  • 3.5.A.3 网络入侵防御系统(NIPS)是一种自动化工具,与 IDS 类似,它通过分析数据来确定网络上是否正在发生恶意活动。NIPS 还可以通过关闭端口、阻止特定的 IP 或 MAC 地址,或拒绝特定协议来缓解或中止攻击。
  • 3.5.A.4 安全信息和事件管理(SIEM)系统从多个来源(包括防火墙、NIDS/NIPS、设备日志和应用程序日志)收集并分析数据,以检测可能表明网络攻击的模式;如果检测到潜在攻击,则会发出警报。安全分析师调查警报以确定其是否代表真实威胁,并遵循标准操作程序来解决或升级警报。

学习目标 3.5.B: 解释组织如何利用人工智能(AI)增强威胁检测与响应能力。

  • 3.5.B.1 计算机记录用户采取的所有操作。防火墙、IDS、IPS 和其他网络传感器记录经过网络各点的所有流量。一个中等规模组织的网络每天会记录数百万(甚至数千万)个数据点。即使是一个庞大的团队也无法分析如此大量的数据。
  • 3.5.B.2 威胁检测团队正在创建 AI 算法来分析大量数据,并将数据模式分类为恶意或正常。
  • 3.5.B.3 用于威胁检测的 AI 模型基于概率计算;它们报告一个百分比来表示某事物是恶意的可能性。
  • 3.5.B.4 组织自行确定触发警报的威胁可能性阈值。如果阈值设置过高,真正的攻击可能会被漏掉;如果阈值过低,安全团队将被虚假警报淹没。

学习目标 3.5.C: 确定网络检测方法。

  • 3.5.C.1 网络流量吞吐量是确定检测方法的标准之一。基于签名的检测对于高流量网络效率更高。基于签名的检测将检测数据与已知受损指标(IoCs)数据库(称为签名)进行比较。签名数据库必须更新最新的 IoC 以应对新攻击。基于签名的检测比基于异常的检测运行速度更快。
  • 3.5.C.2 网络流量模式的一致性是确定检测方法的标准之一。基于异常的检测在流量模式一致的网络上最有效。基于异常的检测将检测数据与记录的活动基线进行比较。必须在未受 compromised 的系统上记录基线,以建立预期的数据类型和容量。当记录到超出指定容差范围的数据类型或容量时,基于异常的检测会触发警报或采取行动。基于异常的检测依赖于网络流量中的一致性模式来检测异常流量模式。
  • 3.5.C.3 网络的敏感度或关键程度是确定检测方法的标准之一。拥有更敏感或关键数据/服务的网络可能会考虑采用混合方法。混合检测结合了基于签名和基于异常的检测。混合检测的成本高于单独使用基于签名或基于异常的检测,并且混合检测模型会产生更多警报。
  • 3.5.C.4 网络上遭受新型攻击的可能性是确定检测方法的标准之一。基于签名的检测无法检测新攻击。当组织怀疑攻击者可能尝试对网络发起新攻击时,如果混合检测成本过高难以承受,则基于异常的检测是首选方法。

学习目标 3.5.D: 评估网络检测方法的影响。

  • 3.5.D.1 检测速度是评估网络检测方法影响的因素之一。更快的检测能够实现更快的响应。基于签名的检测方法比基于异常的检测方法更快,尤其是在高流量网络中。
  • 3.5.D.2 成本是评估网络检测方法影响的因素之一。检测工具和持续运营成本需要在预算范围内。基于异常的检测系统所需的硬件成本高于基于签名的系统。混合检测是最昂贵的选项,因为它结合了基于异常和基于签名的方法。
  • 3.5.D.3 误报率是评估网络检测方法影响的因素之一。基于签名的检测几乎没有误报。基于异常或混合检测会有更高的误报率。高误报率的影响包括:
    • 时间和资源被用于调查非恶意活动的警报。
    • 警报疲劳是指响应人员习惯了误报,因此在调查前就假设警报是误报,从而不再认真对待警报的一种状态。
  • 3.5.D.4 漏报率是评估网络检测方法影响的因素之一。当攻击者能够绕过检测系统时,就会发生漏报。基于签名的检测系统比基于异常或混合系统更容易被绕过。漏报可能导致攻击者对数据和系统造成损失、伤害、中断或破坏。

学习目标 3.5.E: 应用检测技术通过分析日志文件识别网络攻击的指示器。

  • 3.5.E.1 可以通过定期扫描看起来可疑或与本地合法 SSID 相似的无线服务集标识符(SSIDs)来检测邪恶双生(Evil-twin)攻击。可以使用信号三角定位法来定位并禁用广播邪恶双生网络的接入点。
  • 3.5.E.2 可以通过认识到特定物理空间内的无线设备无法连接到无线网络,以及扫描无线范围内的电磁(EM)噪声来检测干扰(Jamming)攻击。
  • 3.5.E.3 可以通过监控网络流量中的异常 ARP 消息(特别是重复 MAC 地址的 ARP 数据包),并检查默认网关上的 ARP 表来检测 ARP 中毒攻击。
  • 3.5.E.4 可以通过监控网络流量中带有不同 MAC 地址的以太网帧的意外激增,并检查交换机上的 MAC 地址表来检测 MAC 泛洪攻击。
  • 3.5.E.5 DNS 中毒攻击很难检测。但是,如果组织的网站经历了突然且无法解释的流量下降,应检查 DNS 记录作为潜在原因。
  • 3.5.E.6 可以通过监控网络流量中发往网络广播地址的 ICMP 请求突然增加来检测 Smurf 攻击。
  • 3.5.E.7 基于网络的 IoCs 是在分析网络流量时发现的,通常以数据包捕获文件的形式存在。指示器可以在源和目的 IP 地址、端口和协议中找到。这些包括:
    • 连接到已知的恶意 IP 地址
    • 未经授权的扫描
    • 网络流量的异常激增或减缓
    • 端口与应用流量不匹配

来源:College Board AP 课程与考试说明

English

When prevention fails, detection takes over. Automated tools read the log files 日志文件 that record network activity:

  • a network intrusion detection system (NIDS) 网络入侵检测系统 analyses traffic and raises an alert, but does not block;
  • a network intrusion prevention system (NIPS) 网络入侵防御系统 can also stop an attack by closing ports or blocking addresses;
  • a security information and event management (SIEM) 安全信息与事件管理 system gathers data from many sources to spot patterns.

There are two detection methods. Signature-based 基于特征 detection compares traffic to a database of known attack signatures - often efficient, but may miss activity without a recognised pattern. Anomaly-based 基于异常 detection compares traffic to a normal baseline 基线 and flags anything unusual - it can catch novel attacks but needs more resources and raises more false alarms. A hybrid approach combines both.

Examining captured traffic (packet-capture files), analysts hunt for network-based indicators of compromise 网络入侵指标 in the source and destination IP addresses, ports, and protocols. Four common ones: connections to known-malicious IP addresses, unauthorized network scans (an outsider probing your ports), unusual spikes or slowdowns in traffic, and mismatched port-application traffic (for example, non-web traffic flowing over port 80). These complete the host-, file-, and behaviour-based indicators a single device logs.

AI, thresholds, and alert fatigue

A medium network logs millions of events a day - far more than any team can read - so organisations train AI models to sort likely-malicious patterns from normal ones. These models are probabilistic 概率的: a detector can report a percentage score for how suspicious an event appears. The course describes this as a likelihood; a reported percentage should not automatically be treated as a perfectly calibrated probability.

The organisation then sets a threshold 阈值 - the likelihood at which an alert fires - and that choice is a genuine trade-off:

  • set the threshold too high and real attacks slip through undetected;
  • set it too low and the team is overwhelmed with false alerts.

Try it — apply an explicit threshold. In this invented teaching dataset, higher scores mean more suspicious. Alert when score is greater than or equal to the threshold. Investigation has established the outcomes.

Event Score Outcome
A 90% attack
B 70% normal
C 60% attack
D 40% normal
E 30% attack
F 10% normal

At thresholds of 70% and 30%, list the alerted events, count normal events alerted, and count attacks missed. Include scores equal to the threshold.

Worked reasoning. At 70%, A and B alert: B is one normal event alerted, while attacks C and E are missed. At 30%, A, B, C, D and E alert: B and D are two normal events alerted, and no attack in this sample is missed. Lowering the threshold catches C and E, but adds normal D to the review queue. Even a high threshold can produce a false alert. These invented scores and investigated outcomes are not measured detector accuracy or a guarantee about future events.

Capacity transfer. Suppose the team can review only two alerts in the period. The 70% setting fits that capacity but misses two known attacks; the 30% setting produces five alerts and exceeds capacity, although it catches all three attacks in this sample. Neither is automatically best. Weigh the harm of misses, the cost of false alerts and investigation capacity. Priorities and other controls matter too; a threshold alone is not a complete defence.

Too many false alerts cause alert fatigue 警报疲劳: responders get so used to false positives that they start assuming an alert is false before investigating it - so a real attack, when it finally comes, is waved away. This is exactly why a low false-positive rate matters: signature-based detection often has fewer false alarms, while anomaly-based detection can flag unfamiliar activity but may add false alarms. Actual results depend on the signatures, baseline, thresholds and traffic; neither method guarantees detection.

Signature-based detection matches known attacks; anomaly-based detection flags deviations from normal
Signature-based detection matches known attacks; anomaly-based detection flags deviations from normal
词汇 训练
English 中文 拼音
log files/lɒɡ faɪlz/ 日志文件 rì zhì wén jiàn
network intrusion detection system (NIDS)/ˈnetwɜːk ɪnˈtruːʒn dɪˈtekʃn ˈsɪstəm/ 网络入侵检测系统 wǎng luò rù qīn jiǎn cè xì tǒng
network intrusion prevention system (NIPS)/ˈnetwɜːk ɪnˈtruːʒn prɪˈvenʃn ˈsɪstəm/ 网络入侵防御系统 wǎng luò rù qīn fáng yù xì tǒng
security information and event management (SIEM)/sɪˈkjʊərɪti ˌɪnfəˈmeɪʃn ænd ɪˈvent ˈmænɪdʒmənt/ 安全信息与事件管理 ān quán xìn xī yǔ shì jiàn guǎn lǐ
Signature-based/ˈsɪɡnɪtʃə beɪst/ 基于特征 jī yú tè zhēng
Anomaly-based/əˈnɒməli beɪst/ 基于异常 jī yú yì cháng
baseline/ˈbeɪslaɪn/ 基线 jī xiàn
network-based indicators of compromise/ˈnetwɜːk beɪst ˈɪndɪkeɪtəz ɒv ˈkɒmprəmaɪz/ 网络入侵指标 wǎng luò rù qīn zhǐ biāo
probabilistic/ˌprɒbəbɪˈlɪstɪk/ 概率的 gài lǜ de
threshold/ˈθreʃəʊld/ 阈值 yù zhí
alert fatigue/əˈlɜːt fəˈtiːɡ/ 警报疲劳 jǐng bào pí láo
3.5

考试技巧

English
  • For firewall-ACL questions, read the rules top-to-bottom and stop at the first match - a Deny rule above an Allow blocks the traffic even though the Allow exists lower down.
  • Pair each attack with its tell-tale sign: ARP poisoning = one IP with two MAC addresses; MAC flooding = a surge of new MAC addresses; DNS poisoning = an unexplained drop in web traffic.
  • Read packet captures for network-based IoCs: known-malicious IPs, unauthorized scans, traffic spikes/slowdowns, and mismatched port-application traffic.
  • Run vulnerability scanners to find known weaknesses proactively, and fix the highest-severity findings first.
  • Signature-based matches known indicators; anomaly-based compares a baseline. Discuss coverage, false alerts and resource costs in the scenario; neither guarantees detection.
  • A screened subnet / DMZ holds public-facing servers between the internet and the private network - name it whenever a question separates public services from internal data.
  • WPA3 is the strong wireless encryption; WEP and original WPA are insecure.

该知识点的互动课程

逐步完成,配合即时检查练习。

历年真题

更多 AP 网络安全 知识点

登录或创建账户

IGCSE, A-Level & AP