DEDA – Tracking Dots Extraction, Decoding and Anonymisation Toolkit
DEDA - 追踪点提取、解码和匿名化工具包
DEDA – Tracking Dots Extraction, Decoding and Anonymisation Toolkit
文档彩色追踪点,或称黄点,是小的、有规律的点,用于编码关于打印机和/或打印输出本身的信息。这个过程几乎集成在所有商业彩色激光打印机中。这意味着几乎每一个打印输出都包含关于来源设备的编码信息,例如序列号。
一方面,这个工具提供了读取和解码这些取证特征的可能性,另一方面,它允许匿名化以防止任意追踪。
如果您使用此软件,请引用以下论文:Timo Richter, Stephan Escher, Dagmar Schönfeld, and Thorsten Strufe. 2018. Forensic Analysis and Anonymisation of Printed Documents. In Proceedings of the 6th ACM Workshop on Information Hiding and Multimedia Security (IH&MMSec '18). ACM, New York, NY, USA, 127-138. DOI: https://doi.org/10.1145/3206004.3206019
安装
-
安装 Python 3
-
安装 Deda
从 PyPI 安装:
$ pip3 install --user deda
或者从当前目录安装:
$ pip3 install --user .
-
Deda_anonmask_apply 的可选需求 (仅限 Unix 和 GNU/Linux):
$ pip3 install --user wand
如果没有 Wand,则无法匿名化图像上包含白色区域的页面。
图形用户界面
- 要打开 GUI,输入:
$ deda_gui
终端应用
1. 读取追踪数据
追踪数据可以从扫描的图像中读取,有时可以解码。为了获得好的结果,输入应使用无损压缩 (例如 png) 和 300 dpi。 确保设置中性对比度 $ deda_parse_print INPUTFILE
2. 在一组扫描文档中查找不同的打印机
$ deda_compare_prints INPUT1 INPUT2 [INPUT3] ...
3. 分析未知的追踪模式
新的模式可能无法被 parse_print 识别。 可以提取点以供进一步分析。 $ deda_extract_yd INPUTFILE
4. 创建你自己的追踪点
如果您想创建自己的追踪点矩阵并将其添加到 PDF 文档中,请将内容作为参数传递(参见 deda_create_dots -h
)。$ deda_create_dots PDFINPUT
校准页面 ($ deda_anonmask_create -w
) 可以用作输入。
5. 匿名化扫描的图像
这(主要)从扫描中删除跟踪数据:$ deda_clean_document INPUTFILE OUTPUTFILE
6. 匿名化要打印的文档
- 将您的文档另存为 PDF 文件,并将其命名为 DOCUMENT.PDF。
- 打印由
$ deda_anonmask_create -w
创建的 testpage.pdf 文件,不带任何页边距。 - 扫描文档 (300 dpi) 并将无损文件传递给
$ deda_anonmask_create -r INPUTFILE
。这将创建 'mask.json',即各个打印机的匿名化 mask。 - 现在应用匿名化 mask:
$ deda_anonmask_apply mask.json DOCUMENT.PDF
。这将创建 'masked.pdf',即匿名化的文档。 可以使用零页边距设置打印。
使用显微镜检查 masked 页面是否覆盖了打印机的追踪点。 mask 的点半径、x 和 y 偏移量可以自定义,并作为参数传递给 deda_anonmask_apply
。
请注意,如果 DOCUMENT.PDF 包含带有白色或浅色部分的图形,则只有在安装了“wand”(见上文)后才能 mask 这些部分。
故障排除
deda_parse_print: command not found
可能的解决方案:
- 按照第 0 章安装 Deda
- 执行
$ export PATH="$PATH:$(python -c 'import site,os; print(os.path.join(site.USER_BASE, "bin"))')"
Deda 无法识别我的追踪点
设置您的扫描程序,使其不会通过某些阈值消除纸张结构或追踪点,然后重试。 请记住,单色页面以及喷墨打印可能不包含追踪点。
我的打印机不打印追踪点。 我可以隐藏这个事实吗?
如果确实没有追踪点,您可以创建自己的追踪点 (deda_create_dots
) 或使用另一台打印机打印校准页面 (deda_anonmask_create -w
) 并将 mask 用于您自己的打印机。 您可以使用匿名化版本的追踪点或只是复制它们 (deda_anonmask_create --copy
)。 请参阅“匿名化要打印的文档”和“创建你自己的追踪点”章节。
安装错误: command 'x86_64-linux-gnu-gcc' failed with exit status 1
这可能是由 GUI 所需的 eel 依赖项引起的。 尝试 $ sudo apt-get install build-essential autoconf libtool pkg-config python3.6-dev gcc && pip3 install --user eel
wand.exceptions.PolicyError: attempt to perform an operation not allowed by the security policy PDF' @ error/constitute.c/IsCoderAuthorized/408
这是由 ImageMagick 引起的。 删除 Wand (pip3 uninstall wand
) 或在 /etc/ImageMagick-*/policy.xml 中 </policymap>
之前添加 ``。 另请参阅 https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion。
关于
话题
yellow-dots tracking-dots printer-forensic
资源
许可证
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Contributors 8
语言
页脚
GitHub © 2025 GitHub, Inc.
页脚导航
You can’t perform that action at this time.