panda

panda-re活跃维护

基于 QEMU 的架构无关动态分析平台,支持记录与重放执行过程,方便做逆向工程和程序行为分析。

Platform for Architecture-Neutral Dynamic Analysis

v1.8.85发布于 2026-06-09 01:17 UTC2,799star +2 / 7 天506fork同步于 2026-11-10 17:44 UTC

怎么上手

由 README 提炼,执行前请确认
docker pull pandare/panda
docker run --rm pandare/panda panda-system-i386 --help
硬件要求按 README 说明

README 未说明显存或 GPU 要求;PANDA 基于 QEMU 全系统模拟,在 CPU 上运行,强烈建议只构建 64 位版本。

有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 QEMU 的全系统动态分析平台,支持记录重放与插件化分析

基于 QEMU 的架构无关动态分析平台,支持记录与重放执行过程,方便做逆向工程和程序行为分析。

核心能力

  • 基于 QEMU 全系统模拟,可访问 guest 全部代码与数据
  • 记录并重放执行,日志紧凑可共享,支持迭代式深度分析
  • 借助 LLVM IR 实现跨 CPU 架构的单一分析逻辑
  • 插件化架构,插件间可共享功能以复用分析代码
  • 支持 x86、x86_64、ARM 的全系统记录重放与时间旅行调试

容易踩的坑

使用 LLVM 动态污点功能需安装 LLVM 14;32 位与 64 位构建的记录无法互相重放;make install 需要系统已安装 chrpath。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.8.85
  1. v1.8.85v1.8.85 @ refs/heads/dev最新正式版2026-06-09 · 2026-06-09 01:17 UTC

    What's Changed

    Full Changelog: https://github.com/panda-re/panda/compare/v1.8.83...v1.8.85

  2. v1.8.84v1.8.84 @ refs/heads/dev2026-06-09 · 2026-06-09 01:02 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/panda-re/panda/compare/v1.8.83...v1.8.84

  3. v1.8.83v1.8.83 @ refs/heads/dev2026-02-03 · 2026-02-03 16:02 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/panda-re/panda/compare/v1.8.82...v1.8.83

  4. v1.8.82v1.8.82 @ refs/heads/dev2026-01-30 · 2026-01-30 14:51 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/panda-re/panda/compare/v1.8.81...v1.8.82

  5. v1.8.81v1.8.81 @ refs/heads/dev2026-01-15 · 2026-01-15 18:41 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/panda-re/panda/compare/v1.8.80...v1.8.81

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    PANDA

    Test Suite Publish Docker Container and Update Pypanda Docs

    PANDA is an open-source Platform for Architecture-Neutral Dynamic Analysis. It is built upon the QEMU whole system emulator, and so analyses have access to all code executing in the guest and all data. PANDA adds the ability to record and replay executions, enabling iterative, deep, whole system analyses. Further, the replay log files are compact and shareable, allowing for repeatable experiments. A nine billion instruction boot of FreeBSD, e.g., is represented by only a few hundred MB. PANDA leverages QEMU's support of thirteen different CPU architectures to make analyses of those diverse instruction sets possible within the LLVM IR. In this way, PANDA can have a single dynamic taint analysis, for example, that precisely supports many CPUs. PANDA analyses are written in a simple plugin architecture which includes a mechanism to share functionality between plugins, increasing analysis code re-use and simplifying complex analysis development.

    It is currently being developed in collaboration with MIT Lincoln Laboratory, NYU, and Northeastern University. PANDA is released under the GPLv2 license.


    Notable Branches

    We have two primary branches of PANDA: dev for development and stable for stable+versioned releases. To learn more about the differences between these branches and version numbers, visit our wiki. In general, PANDA resources (i.e., docker containers and documentation) are based off the dev branch. We recommend using the stable branch if you're going to fork the project and later pull in updates.

    Building

    Quickstart: Docker

    The latest version of PANDA's dev branch is automatically built as a docker image based on Ubuntu 22.04 and published to Docker Hub. Most users will want to use the panda container which has PANDA and PyPANDA installed along with their runtime dependencies, but no build artifacts or source code to reduce the size of the container. Developers interested in using Docker should use the pandadev container which has PANDA and PyPANDA installed, build and runtime dependencies for both, all build artifacts and source code and the contents of this repository in the /panda directory.

    To use the panda container you can pull it from Docker Hub:

    $ docker pull pandare/panda
    $ docker run --rm pandare/panda panda-system-i386 --help
    

    Or build from this repository:

    $ DOCKER_BUILDKIT=1 docker build --target=panda -t panda .
    $ docker run --rm panda panda-system-i386 --help
    

    To use the pandadev container, you can pull it from Docker Hub:

    $ docker pull pandare/pandadev
    $ docker run --rm pandare/pandadev /panda/build/panda-system-i386 --help
    

    Or build from this repository:

    $ DOCKER_BUILDKIT=1 docker build --target=developer -t pandadev .
    $ docker run --rm pandadev panda-system-i386 --help
    

    Quickstart: Python pip

    The Python interface to PANDA (also known as pypanda) can be installed from PIP by running pip3 install pandare. This will install everything you need for python-based PANDA analyses, but not stand-alone PANDA binaries. The distributed binaries are only tested on 64-bit Ubuntu 22.04 and other architectures/versions are likely to work. You can also install pypanda by building PANDA and then running pip install . from the directory panda/panda/python/core.

    Debian, Ubuntu

    The fastest way to install PANDA would be through installing the debian packages. There is a debian package for Ubuntu 22.04, and its corresponding PyPanda package. Because PANDA has a few dependencies, we've encoded the build instructions into the install_ubuntu.sh. The script should work on the latest Debian stable/Ubuntu LTS versions. If you wish to build PANDA manually, you can also check the step-by-step instructions in the documentation directory.

    We currently only vouch for buildability on the latest Debian stable/Ubuntu LTS, but we welcome pull requests to fix issues with other distros. For other distributions, it should be straightforward to translate the apt-get commands into whatever package manager your distribution uses.

    Note that if you want to use our LLVM features (mainly the dynamic taint system), you will need to install LLVM 14 from OS packages or compiled from source. On Ubuntu this should happen automatically via install_ubuntu.sh. Additionally, it is strongly recommended that you only build PANDA as 64-bit binary. Creating a 32-bit build should be possible, but best avoided. See the limitations section for details.

    Arch Linux

    The install_arch.sh has been contributed for building PANDA on Arch Linux. Currently, the script has only been tested on Arch Linux 4.17.5-1-MANJARO. You can also find step-by-step instructions for building on Arch in the documentation directory.

    MacOS

    Building on Mac is less well-tested, but has been known to work. There is a script, install_osx.sh to build under OS X. The script uses homebrew to install the PANDA dependencies. As homebrew is known to be very fast in deprecating support for older versions of OS X and supported packages, expect this to be broken.

    Installation

    After successfully building PANDA, you can copy the build to a system-wide location by running make install. The default installation path is /usr/local. You can specify an alternate installation path through the prefix configuration option. E.g. --prefix=/opt/panda. Note that your system must have chrpath installed in order for make install to succeed.

    If the bin directory containing the PANDA binaries is in your PATH environment variable, then you can run PANDA similarly to QEMU:

    panda-system-i386 -m 2G -hda guest.img -monitor stdio
    

    Limitations

    LLVM Support

    PANDA uses the LLVM architecture from the S2E project. This allows translating the TCG intermediate code representation used by QEMU, to LLVM IR. The latter has the advantages of being easier to work with, as well as platform independent. This enables the implementation of complex analyses like the taint2 plugin. The S2E files used by PANDA to support taint analysis have been updated to work with LLVM 14.

    Cross-architecture record/replay

    Great effort is put to maintain the PANDA trace format stable so that existing traces remain replayable in the future. Changes that will break existing traces are avoided. However, currently, record/replay is only guaranteed between PANDA builds of the same address length. E.g. you can't replay a trace captured on a 32bit build of PANDA on a 64bit of PANDA. The reason for this is that some raw pointers managed to creep into the trace format (see headers in panda/rr).

    Given the memory limitations of 32bit builds, almost all PANDA users use 64bit. As a result, this issue should affect only a tiny minority of users. This is also supported by the fact that the issue remained unreported for a long time (>3 years). Therefore, when a fix is to be implemented, it may be assessed that migrating existing recordings captured by 32bit builds is not worth the effort.

    For this, it is strongly recommended that you only create and use 64bit builds of PANDA. If you happen to already have a dataset of traces captured by a 32bit build of PANDA, you should contact the community ASAP to discuss possible options.


    Documentation and Support

    PANDA manual

    PANDA currently supports whole-system record/replay execution, as well as time-travel debugging, of x86, x86_64, and ARM guests. Other architectures (mips, mipsel, ppc) may be run under PANDA without record/replay support. Details about the implementation and use of PANDA can be found in the PANDA manual. Some of the topics covered are:

    Documentation for individual plugins is provided by the README.md file in the plugin directory. See panda/plugins directory.

    Support

    If you need help with PANDA, or want to discuss the project, you can request an invite to our Slack channel here or join the PANDA mailing list.


    Publications

    • [1] B. Dolan-Gavitt, T. Leek, J. Hodosh, W. Lee. Tappan Zee (North) Bridge: Mining Memory Accesses for Introspection. 20th ACM Conference on Computer and Communications Security (CCS), Berlin, Germany, November 2013.

    • [2] R. Whelan, T. Leek, D. Kaeli. Architecture-Independent Dynamic Information Flow Tracking. 22nd International Conference on Compiler Construction (CC), Rome, Italy, March 2013.

    • [3] B. Dolan-Gavitt, J. Hodosh, P. Hulin, T. Leek, R. Whelan. Repeatable Reverse Engineering with PANDA. 5th Program Protection and Reverse Engineering Workshop, Los Angeles, California, December 2015.

    • [4] M. Stamatogiannakis, P. Groth, H. Bos. Decoupling Provenance Capture and Analysis from Execution. 7th USENIX Workshop on the Theory and Practice of Provenance, Edinburgh, Scotland, July 2015.

    • [5] B. Dolan-Gavitt, P. Hulin, T. Leek, E. Kirda, A. Mambretti, W. Robertson, F. Ulrich, R. Whelan. LAVA: Large-scale Automated Vulnerability Addition. 37th IEEE Symposium on Security and Privacy, San Jose, California, May 2016.


    Acknowledgements

    This material is based upon work supported under Air Force Contract No. FA8721-05-C-0002 and/or FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the U.S. Air Force.