@syferit/llvm 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +21 -11
- package/dist/index.js +39 -28
- package/dist/irTransformer.js +242 -235
- package/dist/nativeSourceTransformer.js +140 -188
- package/dist/types.js +8 -1
- package/package.json +2 -2
- package/dist/irTransformer.d.ts +0 -21
- package/dist/nativeSourceTransformer.d.ts +0 -26
- package/dist/types.d.ts +0 -16
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { NativeProtectionOptions, NativeTransformResult, NativeTargetLanguage } from './types.js';
|
|
2
|
-
/**
|
|
3
|
-
* Native C / C++ / Rust Source-Level Adversarial Transformer
|
|
4
|
-
*
|
|
5
|
-
* Applies the full 6-layer Syferit Iron Dome directly to native C, C++, and Rust
|
|
6
|
-
* source files before compilation (providing 100% compiler-version-independent
|
|
7
|
-
* protection across MSVC, GCC, Clang, rustc, Android NDK, and Xcode):
|
|
8
|
-
*
|
|
9
|
-
* 1. Statutory Legal Inoculation (`__attribute__((used))` / `#[used]` in `.rodata`/`.rdata`)
|
|
10
|
-
* 2. Hash-Bound Runtime State Key Derivation (FNV-1a + MurmurHash3 over legal notice)
|
|
11
|
-
* 3. Symmetric Euler Quartic Residue Predicates (`((u | 1)^4 & 15) == 1`)
|
|
12
|
-
* 4. True Non-Linear Polynomial MBA on integer arithmetic & constants
|
|
13
|
-
* 5. Dynamic S-Box String Literal Encryption (blinds `strings` & Ghidra XREFs)
|
|
14
|
-
* 6. 3-Layer Procedural CFG Anti-Fingerprinting + Identifier Harvesting
|
|
15
|
-
*/
|
|
16
|
-
export declare class NativeSourceTransformer {
|
|
17
|
-
private options;
|
|
18
|
-
private prng;
|
|
19
|
-
private mba;
|
|
20
|
-
private seed;
|
|
21
|
-
constructor(options?: NativeProtectionOptions);
|
|
22
|
-
transform(sourceCode: string, lang?: NativeTargetLanguage): NativeTransformResult;
|
|
23
|
-
private transformCCpp;
|
|
24
|
-
private transformRust;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=nativeSourceTransformer.d.ts.map
|
package/dist/types.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { SyferitOptions } from '@syferit/core';
|
|
2
|
-
export type NativeTargetLanguage = 'llvm-ir' | 'c' | 'cpp' | 'rust';
|
|
3
|
-
export interface NativeProtectionOptions extends SyferitOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Explicit target language override. If omitted, automatically detected by file extension or syntax.
|
|
6
|
-
*/
|
|
7
|
-
targetLanguage?: NativeTargetLanguage;
|
|
8
|
-
}
|
|
9
|
-
export interface NativeTransformResult {
|
|
10
|
-
code: string;
|
|
11
|
-
transformedCount: number;
|
|
12
|
-
seedUsed: number;
|
|
13
|
-
inoculationInjected: boolean;
|
|
14
|
-
stateKeyDerived: number;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=types.d.ts.map
|