arXiv:2610.26207cs.CROct 2026

Manuscript Offprint

arXiv:2610.26207

Signature Knowledge Shielding: Protecting Antivirus Detection Knowledge through Robust Embedding Matching

Jieshuai Yang, Zhi Wang, Yan Jia, Zhenhua Wu, Jianfei Tang, Chenbin Su, Jingwei Ye, Jianwen Tian, Wanpeng Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jieshuai Yang, Zhi Wang, Yan Jia, Zhenhua Wu, Jianfei Tang, Chenbin Su, Jingwei Ye, Jianwen Tian, and Wanpeng Li

Abstract—Antivirus (AV) signatures encode valuable detection knowledge accumulated through expert analysis, yet repeated black-box queries can expose this knowledge for unauthorized reuse and targeted evasion. We propose Signature Knowledge Shielding (SKS), a design paradigm that protects existing AV rules, termed Protected Signatures (PS), through auxiliary Shielding Signatures (SS). SKS uses AV-supervised importance ranking to discover candidate byte blocks, filters and selects them through negative-sample calibration, and combines SS matches with original AV verdicts through logical OR. SS matching introduces additional positive responses and verdict changes during probing, making detection feedback less directly attributable to PS and increasing the difficulty of localizing signature-related content, while preserving original positive verdicts. Within SKS, we integrate five individually tuned non-learning matching methods and further propose Robust Embedding Matching (REM), a lightweight learned matcher trained with random context and byte perturbations. REM provides stronger and more consistent protection against content modifications and scanning-alignment changes. We develop and open-source a ClamAV-based prototype and evaluate it against five probing methods. With an observed additional test false-positive rate below 0.1%, REM raises the mean query count of state-of-the-art probing to as much as 282.57×282.57 \times the unprotected baseline, while introducing only 0.67% GPU scanning overhead. These results demonstrate that SKS can substantially increase signature-extraction costs with limited impact on detection utility and scanning efficiency.

Index Terms—Antivirus Software, Malware Detection, Detection Knowledge Protection.

I. INTRODUCTION

Signature-based detection remains a core component of modern antivirus (AV) systems [1]. Carefully curated signatures provide explicit, reproducible matching conditions for detecting known threats with low false-positive rates. These rules distill expert analysis into reusable detection knowledge, making proprietary signature collections valuable intellectual assets. However, keeping the database confidential does not eliminate knowledge leakage through the scanner's observable behavior.

An adversary can repeatedly modify a detected file and observe binary scanning verdicts to infer detection-relevant content. Prior work has investigated signature inference through such feedback [2], [3]. More recently, AVHunter demonstrates that black-box queries can reveal byte-level decision-critical regions for reproducing AV behavior and guiding targeted evasion [4], complementing findings on malware-classifier and antivirus extraction [5]. Such knowledge leakage creates opportunities for unauthorized reuse of proprietary detection expertise. Bi-Iocane further shows that manipulating AV-sensitive bytes can corrupt AV-generated labels and poison downstream learning-based detectors, exposing risks in the AV-to-ML labeling supply chain [6]. Protecting signature knowledge is therefore important not only for safeguarding intellectual assets, but also for resisting evasion and preserving the integrity of downstream detection pipelines.

Existing approaches address only part of this problem. Concealing the signature database restricts direct access but does not eliminate knowledge leakage through scanning feedback [3]. Server-enforced query controls can increase extraction costs for remote services [7], but their effectiveness cannot be assumed when adversaries control the local scanning environment. Filiol proposes combinatorial subpatterns and instance-specific detection functions to resist black-box analysis [8]. However, this approach requires reorganizing detection patterns and changing their decision logic, rather than directly protecting existing rules in their original form. A key question therefore remains how AV providers can protect their accumulated signature rules while preserving the detection knowledge and matching mechanisms already in place.

We propose Signature Knowledge Shielding (SKS), a design paradigm that introduces Shielding Signatures (SS) to protect existing rules, termed Protected Signatures (PS). While preserving the original detection mechanism, SKS uses SS matching to introduce additional positive responses and irregular verdict changes during probing. These responses make detection feedback harder to attribute to PS, increasing the difficulty of localizing signature-related content. Realizing this objective presents two challenges.

(Corresponding author: Zhi Wang.)

Jieshuai Yang, Zhi Wang, Yan Jia, Zhenhua Wu, Jianfei Tang, Chenbin Su, and Jingwei Ye are with the College of Cryptology and Cyber Science, Nankai University, Tianjin 300350, China (e-mail: yjs@mail.nankai.edu.cn; zwang@nankai.edu.cn; jiay@nankai.edu.cn; 2120250720@mail.nankai.edu.cn; kid519388073@mail.nankai.edu.cn; champion.su@mail.nankai.edu.cn; jwye@mail.nankai.edu.cn).

Challenge #1: Increasing signature-probing complexity. An additional exact pattern may become another extraction target, leaving the original rules exposed once removed. Effective shielding must complicate probing feedback to substantially increase the queries required to localize protected signatures, while remaining effective against content modifications and

Jianwen Tian is with the School of Computing and Information Systems, Singapore Management University, 80 Stamford Road, Singapore 178902 (e-mail: jwtian@smu.edu.sg).

Wanpeng Li is with the School of Computer Science and Informatics, University of Liverpool, Liverpool, UK (e-mail: wanpeng.li@liverpool.ac.uk).

scanning-alignment changes that adversaries may exploit.

Challenge #2: Preserving detection reliability. Introducing SS can strengthen protection, but may also cause previously negative inputs to be flagged. AV systems demand highly reliable detection. Shielding must therefore preserve original detections while strictly limiting additional false positives, without imposing excessive scanning or storage costs.

Within SKS, we integrate five individually tuned non-learning matching methods and further introduce Robust Embedding Matching (REM), a lightweight learned matcher. The REM-based pipeline comprises four stages, namely important-block discovery, matching-model training, SS library construction, and online scanning. First, an AV-supervised model identifies and ranks important byte blocks to form candidate pools. To address Challenge #1, REM learns to match reference blocks under random context and byte perturbations. It combines tolerance to content and alignment changes with fine-grained, irregular detection responses during probing, making PS-related content harder to isolate.

To address Challenge #2, SKS uses negative samples from the training and validation sets to filter false-positive-prone candidates under the calibrated scanning configuration. Guided by importance rankings, construction proceeds for at most R rounds and retains up to k accepted blocks per source sample before global deduplication. During online scanning, SKS combines SS matches with the original AV verdict through logical OR, preserving every original positive verdict while introducing auxiliary matches that complicate signature probing. The objective is to protect existing signature knowledge rather than extend detection to unknown malware.

We develop and open-source a ClamAV-based SKS prototype and evaluate it against five probing strategies. Using a configuration with an observed additional test false-positive rate of 0.0891%, REM raises the mean query count of state-of-the-art probing to as much as 282.57×282.57 \times the unprotected baseline and retains a 272.41×272.41 \times query multiplier under random scan-grid shifts. This configuration provides SS coverage for 95.73% of training positives, with only 0.67% GPU scanning overhead and a 7.92% storage increase relative to the original ClamAV signature database. These results demonstrate protection of signature knowledge through auxiliary matching while preserving original detections and keeping additional false positives and deployment overhead manageable.

Our contributions are as follows:

• A design paradigm for shielding signature knowledge. We propose SKS, which substantially increases signature-probing costs through auxiliary SS matching while preserving original AV positive verdicts and limiting additional false positives.

• A learning-based method for SS matching. We introduce REM, a lightweight matcher trained with random context and byte perturbations, providing stronger and more consistent protection under scanning-alignment changes than the evaluated non-learning alternatives.

• An open-source ClamAV-based prototype. We develop and open-source an SKS prototype integrating REM and five tuned non-learning matchers, supporting reproducible evaluation of signature protection, detection utility, and scanning and storage overhead.

References (57)