AFP

AFP serves Apple file shares on TCP 548, natively on older macOS and via Netatalk on Linux and NAS devices. The offensive surface is guest access that many servers leave enabled, default and weak credentials on appliances, and the Netatalk implementation's history of serious pre-authentication remote code execution vulnerabilities.

阅读约 1 分钟更新于 2026年10月5日florianamette1 位贡献者
在你的助手中提问(MCP)在 GitHub 上编辑

AFP (Apple Filing Protocol) serves Apple-style file shares on TCP 548. It was macOS's native file sharing before SMB took over, and it persists on older macOS servers, Time Machine targets, and especially on NAS appliances and Linux servers running Netatalk, the open-source AFP implementation. Offensively there are three threads: guest access, which many AFP servers enable by default and which exposes volumes without credentials; default and weak credentials on appliances; and Netatalk's implementation, which has carried several serious pre-authentication remote code execution bugs that make an exposed Netatalk a direct compromise target.

bash
# discover AFP and enumerate server info/volumes
nmap -p548 --script afp-serverinfo,afp-showmount,afp-ls <target>
# afp-serverinfo reveals the server name, version, and supported auth (incl. "No User Authent" = guest)

Subtopics#

References#