@syferit/cli 0.4.5 → 1.0.0

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/README.md CHANGED
@@ -51,8 +51,8 @@ syferit protect ./dist/app.js --preset maximum
51
51
  | `-d, --domain <domain>` | Domain dictionary profile: `saas`, `fintech`, `security`, `gaming` | `'saas'` |
52
52
  | `-p, --profile <profile>` | Alias for `-d, --domain` (smart auto-routes if preset name given) | `'saas'` |
53
53
  | `-s, --seed <seed>` | Deterministic seed for reproducible polymorphism | *(Auto-generated UUIDv4)* |
54
- | `-v, --version` | Output the current Syferit version | — |
55
- | `-h, --help` | Display CLI help and flag usage | — |
54
+ | `-v, --version` | Output the current Syferit version | N/A |
55
+ | `-h, --help` | Display CLI help and flag usage | N/A |
56
56
 
57
57
  > [!TIP]
58
58
  > **Smart Collision Avoidance:** If you pass `-p standard` or `-p maximum` (thinking `-p` was preset), Syferit automatically detects the preset value and routes it to `--preset` without error.
package/dist/bin.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- // [Protected by Soltrix Studios — Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
2
+ // [Protected by Soltrix Studios: Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
3
3
  import { Command } from 'commander';
4
4
  import fs from 'node:fs';
5
5
  import path from 'node:path';
6
6
  import { protectFile, protectDirectory } from './index.js';
7
- function unsealOptions_d663(_tok0, _tok1, _tok2, _tok3) {
8
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:537f4518-1c5e46b5]",
7
+ function auditSignatureCheck_be4(_tok0, _tok1, _tok2, _tok3) {
8
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:7a4c9432-5c3083a2]",
9
9
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
10
10
  let _h = 2166136261;
11
11
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -23,23 +23,23 @@ function unsealOptions_d663(_tok0, _tok1, _tok2, _tok3) {
23
23
  _h = (_h ^ _h >>> 16) >>> 0;
24
24
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
25
25
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
26
- if ((_h >>> 4 & 15) !== 0) {
27
- throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
26
+ if ((_h >>> 4 & 15) !== 10) {
27
+ throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
28
28
  }
29
29
  return _h;
30
30
  }
31
- const __tpmPcrBankAttestation_d663 = unsealOptions_d663(1707218903, 1620708255, 209889719, 1461442083);
32
- const _PRESET_VALUESIntegrity_d663 = [[113, 155, 132, 31, 242, 226, 11, 97], [79, 117, 120, 242, 222, 198, 251, 78], [33, 88, 87, 210, 141, 184, 174], [2, 39, 50, 133, 119, 155, 156], [197, 250, 31, 96, 88, 126, 121, 163, 158, 248, 216, 64, 48, 80, 89, 168, 133, 243, 143, 48, 19, 20, 41, 140, 98, 219, 215, 93, 240, 234, 246, 120, 82, 86, 124, 133, 131, 217, 217, 92, 57, 57, 40, 185, 139, 255, 129, 19, 231, 29, 26, 147, 117, 117, 144, 236, 220, 187, 243, 100, 98, 124, 74, 221, 162, 177, 208, 61, 74, 4, 57, 172, 154, 130, 142, 30], [139, 134, 170, 4, 122], [144, 191, 172, 59, 17, 2, 35, 195, 83, 129, 138, 5, 251, 236, 11, 86], [68, 130, 152, 24, 224, 166, 61, 91, 121, 58, 124, 243, 166, 199, 199, 16, 48, 44, 76, 165, 135, 177, 160, 61, 16, 15, 14, 152, 49, 159, 154, 228, 133, 225, 237, 121, 88, 72, 104, 193, 174, 154, 192, 78, 14, 58, 33, 179, 129, 139, 183, 10, 169, 2, 3, 216, 124, 42, 102, 229, 221, 251, 180, 79, 55, 18, 76, 221, 171, 163, 223, 60, 2, 40, 41], [7, 99, 33, 185, 147, 134, 213, 76, 32, 88, 80, 181, 198, 239, 185, 52, 14, 15, 99], [31, 93, 70, 214, 195, 164, 169, 114, 17, 13, 54, 131, 43, 151, 156, 90, 251, 229, 240, 107, 80, 84, 121, 208, 190, 148, 222, 89, 123, 56, 76, 165, 155, 185, 177, 42], [89, 14, 123, 195, 37, 216, 132, 2, 232, 169, 67, 123, 81, 105, 123, 161], [221, 227, 15, 124, 68, 116, 113, 232, 168, 193, 202, 16, 58, 55, 76, 180, 156, 162, 236, 40, 28, 30, 8, 204, 57, 154, 145, 230, 196, 231, 228, 96, 74, 6, 104, 199, 237, 211, 222, 17, 17, 34, 37, 179, 144, 194, 183, 18, 236, 4, 27, 138, 116, 126, 101, 165], [147, 134, 206, 88, 38, 79, 64, 181, 198, 239, 185, 52, 14, 15, 99], [162, 188, 175, 51, 4, 68, 60, 137, 121, 216, 195, 21, 179, 172, 175, 35, 92, 85, 98], [37, 216, 155, 5, 249, 250, 26, 127, 16, 33, 99, 237, 161, 194, 194, 71, 102], [125, 104, 127, 232, 164, 205, 208, 89, 58, 44, 24, 168, 140, 160, 169, 52, 71, 74, 19, 152, 112, 144, 144, 225, 215, 246, 164, 52, 81, 71, 110, 204, 168, 212, 213, 88, 77, 110, 43, 162, 213, 143, 185, 28, 224, 27, 25, 149], [58, 94, 71, 165, 131, 189, 172, 49], [90, 20, 118, 198, 38, 213, 158, 8, 240, 234, 235, 98, 86, 0, 42, 210, 181, 219, 204, 95, 55, 45, 0], [216, 230, 18, 106, 89, 115, 51, 251, 173, 210, 211, 90, 55, 43, 90, 181, 149, 249, 191, 41, 239, 11, 10, 131, 113, 33, 223, 240, 201, 244, 248, 59, 28, 79, 118, 197, 164, 216, 208, 87, 72, 113, 52, 182, 155, 144, 169, 14, 248, 0, 67, 219, 71, 108, 110, 230, 218, 198, 190], [178, 207, 197, 67], [203, 183, 229, 117, 87, 74, 57, 134, 99, 154, 152, 19, 130, 179, 225, 126, 91, 66, 112, 203, 244], [74, 148, 135, 27, 236, 172, 228, 97, 65, 0, 59, 210, 235, 148, 135, 27, 43, 58, 81, 172, 134, 176, 183], [29, 110, 63, 191, 233, 156, 212, 86, 61, 33, 27, 251, 159, 188, 170, 63, 190], [17, 39, 76, 161, 155, 187, 165, 54, 20, 25, 20, 133, 114, 222, 150, 245, 204, 254, 236, 52, 74, 67, 121, 204, 237, 220, 223, 78, 65, 60, 33, 160, 135, 141, 188, 17, 234, 31, 14, 148, 120, 42, 112, 227, 221, 231, 249, 79, 55, 66, 64, 221, 170, 171]];
33
- function _auditTpmPcrBankIntegrity_d663(_slot) {
34
- const _row = _PRESET_VALUESIntegrity_d663[_slot];
35
- return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__tpmPcrBankAttestation_d663 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
31
+ var __existsSyncState_be4 = auditSignatureCheck_be4(641977619, 170569237, 46696271, 163915989);
32
+ var _rawTargetBank_be4 = [[208, 205, 209, 146, 83, 44, 54, 244], [160, 191, 167, 69, 57, 28, 12, 209], [128, 98, 130, 47, 236, 226, 227], [97, 81, 121, 14, 212, 213, 199], [100, 52, 34, 245, 185, 136, 172, 30, 127, 38, 21, 213, 145, 102, 108, 37, 228, 189, 210, 133, 114, 66, 92, 17, 195, 229, 154, 40, 17, 60, 35, 245, 179, 152, 129, 16, 34, 239, 12, 161, 152, 103, 101, 44, 234, 137, 244, 158, 70, 83, 71, 230, 212, 163, 165, 113, 61, 69, 62, 209, 195, 170, 159, 80, 3, 255, 237, 168, 43, 114, 108, 17, 251, 220, 195, 139], [108, 92, 93, 155, 197], [241, 229, 225, 174, 112, 72, 86, 78, 242, 203, 215, 112, 90, 54, 62, 203], [231, 204, 195, 147, 67, 112, 6, 192, 154, 196, 183, 72, 5, 17, 12, 155, 147, 98, 119, 46, 228, 199, 251, 134, 115, 81, 69, 3, 146, 169, 209, 111, 102, 47, 54, 242, 187, 158, 147, 90, 13, 164, 11, 181, 109, 108, 106, 56, 226, 197, 204, 129, 10, 52, 88, 163, 223, 244, 173, 126, 62, 13, 127, 196, 148, 220, 151, 86, 8, 245, 228, 167, 97, 86, 98], [230, 149, 244, 4, 114, 88, 24, 217, 129, 110, 101, 56, 167, 161, 228, 129, 111, 89, 22], [160, 103, 137, 33, 164, 238, 254, 253, 126, 71, 73, 20, 140, 173, 203, 37, 36, 63, 63, 252, 183, 158, 142, 95, 17, 94, 1, 174, 220, 98, 123, 58, 228, 195, 254, 157], [56, 68, 14, 78, 132, 146, 217, 119, 73, 115, 118, 230, 176, 147, 182, 20], [126, 53, 52, 231, 167, 138, 186, 83, 11, 23, 1, 155, 153, 121, 119, 63, 255, 212, 183, 147, 127, 64, 67, 87, 154, 172, 218, 109, 39, 41, 63, 235, 169, 208, 147, 92, 78, 237, 21, 234, 114, 116, 110, 56, 243, 140, 204, 153, 79, 50, 64, 241, 215, 160, 174, 62], [114, 88, 3, 205, 135, 121, 117, 56, 167, 161, 228, 129, 111, 89, 22], [197, 246, 248, 188, 107, 14, 67, 30, 222, 226, 148, 106, 108, 118, 96, 180, 187, 159, 149], [132, 146, 198, 112, 88, 32, 47, 226, 241, 219, 174, 88, 0, 8, 23, 202, 199], [158, 150, 180, 83, 7, 27, 27, 210, 153, 98, 35, 35, 239, 214, 242, 143, 36, 20, 88, 3, 211, 166, 219, 106, 52, 56, 127, 191, 178, 145, 149, 87, 11, 234, 30, 163, 46, 56, 96, 41, 182, 193, 194, 151, 67, 45, 66, 238], [155, 104, 114, 40, 226, 243, 241, 132], [53, 94, 9, 81, 129, 239, 201, 119, 47, 48, 36, 245, 177, 202, 221, 93, 26, 17, 19, 168, 144, 119, 55], [121, 60, 39, 247, 184, 137, 254, 78, 12, 24, 6, 215, 150, 97, 103, 32, 244, 131, 234, 148, 78, 81, 71, 22, 208, 235, 234, 125, 40, 62, 37, 142, 253, 149, 131, 88, 5, 226, 29, 162, 41, 59, 97, 59, 250, 218, 212, 155, 89, 58, 22, 166, 166, 182, 163, 115, 59, 12, 75], [17, 25, 14, 200], [170, 249, 184, 192, 54, 28, 76, 27, 194, 164, 213, 102, 99, 101, 52, 243, 186, 140, 141, 94, 85], [237, 174, 208, 100, 51, 118, 43, 246, 166, 202, 204, 93, 68, 94, 88, 236, 140, 96, 102, 51, 249, 202, 248], [252, 148, 242, 10, 72, 86, 1, 219, 156, 107, 38, 110, 254, 198, 255, 130, 31], [178, 105, 119, 42, 248, 205, 254, 141, 119, 71, 95, 30, 209, 232, 221, 126, 47, 48, 55, 191, 169, 149, 130, 87, 78, 226, 20, 181, 34, 106, 106, 43, 228, 195, 199, 154, 73, 41, 85, 239, 219, 244, 187, 120, 62, 17, 50, 196, 148, 140, 155, 86, 9, 253]];
33
+ function _auditDescription_be4(_slot) {
34
+ const _row = _rawTargetBank_be4[_slot];
35
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__existsSyncState_be4 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
36
36
  }
37
- const PRESET_VALUES = new Set([_auditTpmPcrBankIntegrity_d663(52027 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 313)), _auditTpmPcrBankIntegrity_d663(33082 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 19257)), _auditTpmPcrBankIntegrity_d663(56075 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 4363))]);
37
+ const PRESET_VALUES = new Set([_auditDescription_be4(730909350 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 7205, 20913)), _auditDescription_be4(1679741887 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 19641, 30363)), _auditDescription_be4(923775410 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 25171, 14613))]);
38
38
  const program = new Command();
39
- program.name(_auditTpmPcrBankIntegrity_d663(36778 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 17835))).description(_auditTpmPcrBankIntegrity_d663(57644 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 11050))).version(_auditTpmPcrBankIntegrity_d663(43908 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 24963)));
40
- program.command(_auditTpmPcrBankIntegrity_d663(60496 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 9812))).description(_auditTpmPcrBankIntegrity_d663(44909 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 25960))).option(_auditTpmPcrBankIntegrity_d663(55191 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 7581)), _auditTpmPcrBankIntegrity_d663(35466 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 16513))).option(_auditTpmPcrBankIntegrity_d663(33378 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 18538)), _auditTpmPcrBankIntegrity_d663(58328 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 10705))).option(_auditTpmPcrBankIntegrity_d663(36891 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 23061)), _auditTpmPcrBankIntegrity_d663(49856 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 2255))).option(_auditTpmPcrBankIntegrity_d663(33301 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 18457)), _auditTpmPcrBankIntegrity_d663(60599 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 9914)), _auditTpmPcrBankIntegrity_d663(61337 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 9611))).option(_auditTpmPcrBankIntegrity_d663(62809 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 16202)), _auditTpmPcrBankIntegrity_d663(47191 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 29255)), _auditTpmPcrBankIntegrity_d663(51076 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 3477))).option(_auditTpmPcrBankIntegrity_d663(50122 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 2524)), _auditTpmPcrBankIntegrity_d663(51624 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 959))).option(_auditTpmPcrBankIntegrity_d663(61510 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 14930)), _auditTpmPcrBankIntegrity_d663(52770 ^ (__tpmPcrBankAttestation_d663 & 65535 ^ 1079))).action((targetArg, options) => {
41
- function unsealOptions_5780(_tok0, _tok1, _tok2, _tok3) {
42
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:5c9a027d-66477610]",
39
+ program.name(_auditDescription_be4(1455311352 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 27108, 22445))).description(_auditDescription_be4(730982786 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 25953, 11811))).version(_auditDescription_be4(533745130 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 14866, 11935)));
40
+ program.command(_auditDescription_be4(1176543184 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 15517, 27317))).description(_auditDescription_be4(1050527017 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 12341, 24933))).option(_auditDescription_be4(1060567469 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 8572, 22779)), _auditDescription_be4(247714232 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 23128, 4675))).option(_auditDescription_be4(1392377230 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 18855, 24609)), _auditDescription_be4(275671714 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 31252, 4511))).option(_auditDescription_be4(1053400495 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 11680, 22241)), _auditDescription_be4(618425049 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 2439, 15373))).option(_auditDescription_be4(1773562499 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 31624, 28967)), _auditDescription_be4(784003177 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 18313, 14503)), _auditDescription_be4(760119394 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 11169, 15545))).option(_auditDescription_be4(950852098 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 14894, 21279)), _auditDescription_be4(226601629 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 10758, 4643)), _auditDescription_be4(1837426045 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 32489, 30635))).option(_auditDescription_be4(1262961072 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 27999, 19735)), _auditDescription_be4(1032297528 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 3160, 26359))).option(_auditDescription_be4(1341234573 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 15876, 30701)), _auditDescription_be4(1674181426 ^ Math.imul(__existsSyncState_be4 & 65535 ^ 27494, 25569))).action((targetArg, options) => {
41
+ function verifyName_fe8f(_tok0, _tok1, _tok2, _tok3) {
42
+ const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:27a059fa-7aec7b04]",
43
43
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
44
44
  let _h = 2166136261;
45
45
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -57,58 +57,58 @@ program.command(_auditTpmPcrBankIntegrity_d663(60496 ^ (__tpmPcrBankAttestation_
57
57
  _h = (_h ^ _h >>> 16) >>> 0;
58
58
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
59
59
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
60
- if ((_h >>> 4 & 15) !== 11) {
61
- throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
60
+ if ((_h >>> 4 & 15) !== 2) {
61
+ throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
62
62
  }
63
63
  return _h;
64
64
  }
65
- const __hmacRingSequence_5780 = unsealOptions_5780(1782584013, 2112226255, 1229685587, 1080607517);
66
- const _pcrPolicyBitmask_5780 = [[243, 197, 247, 238, 56, 113, 57, 69, 178, 186, 204, 218, 23, 83, 50, 77, 99, 100, 188, 183, 227, 187, 8, 69, 90, 78, 143, 158, 167, 183, 177, 235, 63, 59, 64, 1, 133, 153, 153, 209, 23, 13, 40, 42, 102, 124, 147, 164, 134, 211, 26, 81, 74, 73, 102, 113, 171, 172, 233, 185, 74, 6, 31, 74, 216, 215, 165, 178, 243, 237, 60, 39, 119, 107, 205, 153, 192, 220, 245, 24, 37, 51, 53, 63, 245, 191, 192, 214, 26, 15, 29, 86, 112, 35, 177, 190, 239, 241, 0, 19, 67, 95, 217, 133, 204, 208, 249, 236, 49, 39, 1, 48, 146, 199, 155, 158, 30, 18, 58, 49, 110, 38], [179, 189, 216, 194, 10, 30, 91, 94], [115, 96, 174, 184], [85, 84, 155, 148, 204, 217, 252, 237, 34, 32], [44, 34, 105, 102, 129, 238, 153, 153, 45, 64, 30, 78, 114, 117, 188, 178, 238], [10, 30, 93, 86, 98, 114, 183, 145, 254, 235, 9, 14, 74, 88, 159, 146]];
67
- function _isolateTpmPcrBankAttestation_5780(_slot) {
68
- const _row = _pcrPolicyBitmask_5780[_slot];
69
- return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__hmacRingSequence_5780 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
65
+ const __errorState_fe8f = verifyName_fe8f(1818551179, 1161534861, 362449717, 1808083221);
66
+ const _versionDigest_fe8f = [[98, 169, 102, 52, 201, 85, 136, 191, 35, 102, 93, 240, 134, 183, 163, 103, 18, 72, 13, 205, 114, 159, 153, 31, 235, 50, 254, 180, 86, 147, 0, 1, 174, 23, 209, 219, 52, 125, 104, 235, 134, 209, 185, 64, 247, 88, 2, 206, 55, 191, 107, 107, 219, 45, 247, 171, 90, 144, 88, 83, 251, 226, 238, 96, 73, 59, 52, 232, 130, 201, 141, 93, 230, 55, 92, 179, 81, 184, 100, 50, 212, 31, 132, 197, 100, 155, 81, 12, 171, 243, 236, 124, 1, 7, 0, 212, 126, 221, 145, 73, 242, 59, 168, 191, 93, 140, 104, 6, 160, 3, 144, 218, 35, 43, 106, 164, 143, 246, 171, 107, 31, 26], [36, 97, 75, 228, 133, 250, 168, 112], [2, 68, 63, 214], [230, 56, 236, 174, 95, 189, 99, 55, 209, 28], [222, 1, 220, 138, 61, 115, 78, 234, 144, 242], [147, 247, 172, 120, 17]];
67
+ function _authenticateDomain_fe8f(_slot) {
68
+ const _row = _versionDigest_fe8f[_slot];
69
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__errorState_fe8f >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
70
70
  }
71
- if ((__hmacRingSequence_5780 & 255) !== 182) {
71
+ if ((__errorState_fe8f & 255) !== 39) {
72
72
  throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
73
73
  }
74
- const _commandAttestation_10d = targetArg || options.target;
75
- if (!_commandAttestation_10d) {
76
- console.error(_isolateTpmPcrBankAttestation_5780(41313 ^ (__hmacRingSequence_5780 & 65535 ^ 13271)));
77
- process.exit(56453 ^ (__hmacRingSequence_5780 & 65535 ^ 20018));
74
+ const _profileFrame_adf = targetArg || options.target;
75
+ if (!_profileFrame_adf) {
76
+ console.error(_authenticateDomain_fe8f(1008944158 ^ Math.imul(__errorState_fe8f & 65535 ^ 5761, 24533)));
77
+ process.exit(881422744 ^ Math.imul(__errorState_fe8f & 65535 ^ 15132, 24379));
78
78
  }
79
- const _exitBitmask_9 = path.resolve(process.cwd(), _commandAttestation_10d);
80
- if (!fs.existsSync(_exitBitmask_9)) {
81
- console.error(`Error: Target path does not exist: ${_exitBitmask_9}`);
82
- process.exit(36228 ^ (__hmacRingSequence_5780 & 65535 ^ 7987));
79
+ const _optionsFrame_904 = path.resolve(process.cwd(), _profileFrame_adf);
80
+ if (!fs.existsSync(_optionsFrame_904)) {
81
+ console.error(`Error: Target path does not exist: ${_optionsFrame_904}`);
82
+ process.exit(1308337146 ^ Math.imul(__errorState_fe8f & 65535 ^ 29742, 26339));
83
83
  }
84
- let _targetArgBitmask_493 = options.preset;
85
- let _entropyNonceEnvelope_3cc = options.domain || options.profile;
86
- if (PRESET_VALUES.has(_entropyNonceEnvelope_3cc) && _targetArgBitmask_493 === _isolateTpmPcrBankAttestation_5780(37231 ^ (__hmacRingSequence_5780 & 65535 ^ 984))) {
87
- _targetArgBitmask_493 = _entropyNonceEnvelope_3cc;
88
- _entropyNonceEnvelope_3cc = _isolateTpmPcrBankAttestation_5780(42018 ^ (__hmacRingSequence_5780 & 65535 ^ 13974));
84
+ let _statVector_b97 = options.preset;
85
+ let _existsSyncBank_d93 = options.domain || options.profile;
86
+ if (PRESET_VALUES.has(_existsSyncBank_d93) && _statVector_b97 === _authenticateDomain_fe8f(1280592004 ^ Math.imul(__errorState_fe8f & 65535 ^ 32128, 24563))) {
87
+ _statVector_b97 = _existsSyncBank_d93;
88
+ _existsSyncBank_d93 = _authenticateDomain_fe8f(1923345014 ^ Math.imul(__errorState_fe8f & 65535 ^ 18443, 29559));
89
89
  }
90
- const _sgxBoundaryAttestation_24 = fs.statSync(_exitBitmask_9);
91
- const _SoltrixStudiosDelta_e82 = {
90
+ const _protectFileVector_a32 = fs.statSync(_optionsFrame_904);
91
+ const _nameAttestation_fab = {
92
92
  seed: options.seed,
93
- domainProfile: _entropyNonceEnvelope_3cc,
94
- preset: _targetArgBitmask_493,
95
- mode: _isolateTpmPcrBankAttestation_5780(58200 ^ (__hmacRingSequence_5780 & 65535 ^ 29165))
93
+ domainProfile: _existsSyncBank_d93,
94
+ preset: _statVector_b97,
95
+ mode: _authenticateDomain_fe8f(1086066504 ^ Math.imul(__errorState_fe8f & 65535 ^ 19822, 16883))
96
96
  };
97
- const _nameVector_eb9 = options.output || options.out;
98
- if (_sgxBoundaryAttestation_24.isDirectory()) {
99
- const outDir = _nameVector_eb9 ? path.resolve(process.cwd(), _nameVector_eb9) : undefined;
100
- const res = protectDirectory(_exitBitmask_9, outDir, _SoltrixStudiosDelta_e82);
97
+ const _descriptionDigest_ea6 = options.output || options.out;
98
+ if (_protectFileVector_a32.isDirectory()) {
99
+ const outDir = _descriptionDigest_ea6 ? path.resolve(process.cwd(), _descriptionDigest_ea6) : undefined;
100
+ const res = protectDirectory(_optionsFrame_904, outDir, _nameAttestation_fab);
101
101
  console.log(`Protected directory: ${res.filesTransformed}/${res.filesProcessed} source files transformed.`);
102
102
  } else {
103
- const outFile = _nameVector_eb9 ? path.resolve(process.cwd(), _nameVector_eb9) : undefined;
104
- const res = protectFile(_exitBitmask_9, outFile, _SoltrixStudiosDelta_e82);
103
+ const outFile = _descriptionDigest_ea6 ? path.resolve(process.cwd(), _descriptionDigest_ea6) : undefined;
104
+ const res = protectFile(_optionsFrame_904, outFile, _nameAttestation_fab);
105
105
  console.log(`File protection complete. Transformed: ${res.transformed}`);
106
106
  }
107
107
  });
108
108
  program.parse(process.argv);
109
109
  if (typeof window !== "undefined") {
110
- window.__syferitIPC_f497.invoke && window.__syferitIPC_f497.invoke("hardware:monotonic-clock-sync", {
111
- syncEpoch: 1083349730,
112
- channelSig: "SIG_FRAME_F497"
110
+ window.__syferitIPC_6684 && window.__syferitIPC_6684.invoke && window.__syferitIPC_6684.invoke("hardware:monotonic-clock-sync", {
111
+ syncEpoch: 2125719466,
112
+ channelSig: "SIG_FRAME_6684"
113
113
  });
114
114
  }
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // [Protected by Soltrix Studios — Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
1
+ // [Protected by Soltrix Studios | Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
2
2
  import type { SyferitOptions } from '@syferit/core';
3
3
  export interface CliProtectOptions extends SyferitOptions {
4
4
  out?: string;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // [Protected by Soltrix Studios — Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
1
+ // [Protected by Soltrix Studios: Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
2
2
  import fs from 'node:fs';
3
3
  import path from 'node:path';
4
4
  import { protect } from '@syferit/core';
@@ -6,8 +6,8 @@ import { protectWasm } from '@syferit/wasm';
6
6
  import { protectLlvmIr, protectNativeSource } from '@syferit/llvm';
7
7
  import { protectPython } from '@syferit/python';
8
8
  export function protectFile(filePath, outPath, options) {
9
- function isolateIsRust_4ca5(_tok0, _tok1, _tok2, _tok3) {
10
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:454bcf2e-825b6f80]",
9
+ function isolateTest_5cde(_tok0, _tok1, _tok2, _tok3) {
10
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:efdcba4e-c8ddfd2d]",
11
11
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
12
12
  let _h = 2166136261;
13
13
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -25,75 +25,75 @@ export function protectFile(filePath, outPath, options) {
25
25
  _h = (_h ^ _h >>> 16) >>> 0;
26
26
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
27
27
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
28
- if ((_h >>> 4 & 15) !== 12) {
29
- throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
28
+ if ((_h >>> 4 & 15) !== 8) {
29
+ throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
30
30
  }
31
31
  return _h;
32
32
  }
33
- const __tpmPcrBankBitmask_4ca5 = isolateIsRust_4ca5(1166770725, 1415239733, 383130945, 1195919927);
34
- const _isWasmAttestation_4ca5 = [[228, 162, 224, 187, 51], [193, 150, 202], [58, 109, 184], [23, 52, 137], [43, 29, 115, 113, 202], [246, 250, 92, 172, 47], [221, 199, 57, 139, 4], [191, 173, 247, 191], [145, 141, 217], [98, 86, 168, 56, 147], [73, 51, 149, 23, 232], [20, 24, 126, 114, 205], [243, 229, 91, 169, 34], [222, 194, 4, 132, 7]];
35
- function _isolateKeyDerivationStateProof_4ca5(_slot) {
36
- const _row = _isWasmAttestation_4ca5[_slot];
37
- return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__tpmPcrBankBitmask_4ca5 >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
33
+ const __SyferitEngineQuorum_5cde = isolateTest_5cde(1461338397, 402172679, 761639093, 1803964035);
34
+ const _certificateProof_5cde = [[171, 57, 105, 221, 116], [132, 31, 65], [225, 234, 33], [218, 205, 14], [108, 150, 250, 111, 149], [75, 115, 167, 74, 234], [22, 88, 128, 161, 207], [250, 36, 120, 197], [206, 6, 64], [167, 239, 51, 214, 94], [130, 180, 28, 13, 179], [105, 145, 249, 104, 136], [52, 126, 162, 71, 237], [19, 91, 143, 162, 194]];
35
+ function _synchronizeNonceContext_5cde(_slot) {
36
+ const _row = _certificateProof_5cde[_slot];
37
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__SyferitEngineQuorum_5cde >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
38
38
  }
39
- const _endsWithEnvelope_c33 = filePath.endsWith(_isolateKeyDerivationStateProof_4ca5(52519 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 32237)));
40
- const _sgxBoundaryBitmask_155 = filePath.endsWith(_isolateKeyDerivationStateProof_4ca5(53219 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 32552)));
41
- const _testIntegrity_2d0 = filePath.endsWith(_isolateKeyDerivationStateProof_4ca5(50713 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 30417)));
42
- const _monotonicNonceDrift_afe = /\.(c|cpp|cc|cxx)$/i.test(filePath);
43
- const _sgxBoundaryProof_84e = filePath.endsWith(_isolateKeyDerivationStateProof_4ca5(43477 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 6428)));
44
- const _destDirBitmask_a2d = outPath || filePath;
45
- const _pcrPolicyBitmask_4c6 = path.dirname(_destDirBitmask_a2d);
46
- if (!fs.existsSync(_pcrPolicyBitmask_4c6)) {
47
- fs.mkdirSync(_pcrPolicyBitmask_4c6, {
39
+ const _SoltrixStudiosDelta_a4b = filePath.endsWith(_synchronizeNonceContext_5cde(18500289 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 10870, 18299)));
40
+ const _filePathEnvelope_f48 = filePath.endsWith(_synchronizeNonceContext_5cde(124538894 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 2874, 14001)));
41
+ const _signatureDigest_6cd = filePath.endsWith(_synchronizeNonceContext_5cde(291900065 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 17760, 10471)));
42
+ const _resultProof_c23 = /\.(c|cpp|cc|cxx)$/i.test(filePath);
43
+ const _pathBank_1bb = filePath.endsWith(_synchronizeNonceContext_5cde(461389100 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 32582, 20773)));
44
+ const _writeFileSyncAttestation_87f = outPath || filePath;
45
+ const _wasmBytesBank_f33 = path.dirname(_writeFileSyncAttestation_87f);
46
+ if (!fs.existsSync(_wasmBytesBank_f33)) {
47
+ fs.mkdirSync(_wasmBytesBank_f33, {
48
48
  recursive: true
49
49
  });
50
50
  }
51
- if (_endsWithEnvelope_c33) {
51
+ if (_SoltrixStudiosDelta_a4b) {
52
52
  const wasmBytes = fs.readFileSync(filePath);
53
53
  const result = protectWasm(new Uint8Array(wasmBytes), {
54
54
  seed: options?.seed,
55
55
  domainProfile: options?.domainProfile
56
56
  });
57
- fs.writeFileSync(_destDirBitmask_a2d, result.binary);
57
+ fs.writeFileSync(_writeFileSyncAttestation_87f, result.binary);
58
58
  return {
59
- transformed: result.sectionsProtected > (33037 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 12743))
59
+ transformed: result.sectionsProtected > (2723722 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 10255, 6913))
60
60
  };
61
61
  }
62
- if (_sgxBoundaryBitmask_155) {
63
- const irCode = fs.readFileSync(filePath, _isolateKeyDerivationStateProof_4ca5(44729 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 7799)));
62
+ if (_filePathEnvelope_f48) {
63
+ const irCode = fs.readFileSync(filePath, _synchronizeNonceContext_5cde(256367948 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 31309, 11953)));
64
64
  const result = protectLlvmIr(irCode, options);
65
- fs.writeFileSync(_destDirBitmask_a2d, result.code, _isolateKeyDerivationStateProof_4ca5(65032 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 20167)));
65
+ fs.writeFileSync(_writeFileSyncAttestation_87f, result.code, _synchronizeNonceContext_5cde(471159945 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 30409, 19313)));
66
66
  return {
67
- transformed: result.transformedCount > (47776 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 2666))
67
+ transformed: result.transformedCount > (493065814 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 4811, 32477))
68
68
  };
69
69
  }
70
- if (_testIntegrity_2d0 || _monotonicNonceDrift_afe) {
71
- const srcCode = fs.readFileSync(filePath, _isolateKeyDerivationStateProof_4ca5(64230 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 18986)));
70
+ if (_signatureDigest_6cd || _resultProof_c23) {
71
+ const srcCode = fs.readFileSync(filePath, _synchronizeNonceContext_5cde(476723343 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 5822, 29451)));
72
72
  const result = protectNativeSource(srcCode, {
73
73
  ...options,
74
- targetLanguage: _testIntegrity_2d0 ? _isolateKeyDerivationStateProof_4ca5(44142 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 7331)) : _isolateKeyDerivationStateProof_4ca5(40761 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 12283))
74
+ targetLanguage: _signatureDigest_6cd ? _synchronizeNonceContext_5cde(1592676 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 10714, 16765)) : _synchronizeNonceContext_5cde(128288623 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 14648, 29939))
75
75
  });
76
- fs.writeFileSync(_destDirBitmask_a2d, result.code, _isolateKeyDerivationStateProof_4ca5(63060 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 18071)));
76
+ fs.writeFileSync(_writeFileSyncAttestation_87f, result.code, _synchronizeNonceContext_5cde(736431041 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 23645, 24411)));
77
77
  return {
78
- transformed: result.transformedCount > (48523 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 3393))
78
+ transformed: result.transformedCount > (395111490 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 28163, 21579))
79
79
  };
80
80
  }
81
- if (_sgxBoundaryProof_84e) {
82
- const pyCode = fs.readFileSync(filePath, _isolateKeyDerivationStateProof_4ca5(48794 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 3674)));
81
+ if (_pathBank_1bb) {
82
+ const pyCode = fs.readFileSync(filePath, _synchronizeNonceContext_5cde(163196518 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 23865, 5461)));
83
83
  const result = protectPython(pyCode, options);
84
- fs.writeFileSync(_destDirBitmask_a2d, result.code, _isolateKeyDerivationStateProof_4ca5(46467 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 1346)));
84
+ fs.writeFileSync(_writeFileSyncAttestation_87f, result.code, _synchronizeNonceContext_5cde(97647541 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 9915, 25025)));
85
85
  return {
86
- transformed: result.transformedCount > (46377 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 1507))
86
+ transformed: result.transformedCount > (181550821 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 28128, 10369))
87
87
  };
88
88
  }
89
- const _protectLlvmIrProof_ce0 = fs.readFileSync(filePath, _isolateKeyDerivationStateProof_4ca5(39806 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 11192)));
90
- const _destinationProof_dd4 = protect(_protectLlvmIrProof_ce0, options);
91
- fs.writeFileSync(_destDirBitmask_a2d, _destinationProof_dd4.code, _isolateKeyDerivationStateProof_4ca5(41521 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 4854)));
92
- return (__tpmPcrBankBitmask_4ca5 & 255) === 202 ? {
93
- transformed: _destinationProof_dd4.transformedCount > (59573 ^ (__tpmPcrBankBitmask_4ca5 & 65535 ^ 22655))
89
+ const _outPathEnvelope_f52 = fs.readFileSync(filePath, _synchronizeNonceContext_5cde(665921330 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 17151, 24203)));
90
+ const _protectAttestation_31 = protect(_outPathEnvelope_f52, options);
91
+ fs.writeFileSync(_writeFileSyncAttestation_87f, _protectAttestation_31.code, _synchronizeNonceContext_5cde(246875082 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 3516, 26623)));
92
+ return (__SyferitEngineQuorum_5cde & 255) === 133 ? {
93
+ transformed: _protectAttestation_31.transformedCount > (227286944 ^ Math.imul(__SyferitEngineQuorum_5cde & 65535 ^ 22757, 7831))
94
94
  } : (() => {
95
- function verifySyferitEngineContext_1f43(_tok0, _tok1, _tok2, _tok3) {
96
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:66508597-6ce1d128]",
95
+ function reconcileKeystoreQuorum_a37c(_tok0, _tok1, _tok2, _tok3) {
96
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:aa74d3a6-b688f8d3]",
97
97
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
98
98
  let _h = 2166136261;
99
99
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -111,21 +111,21 @@ export function protectFile(filePath, outPath, options) {
111
111
  _h = (_h ^ _h >>> 16) >>> 0;
112
112
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
113
113
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
114
- if ((_h >>> 4 & 15) !== 6) {
114
+ if ((_h >>> 4 & 15) !== 7) {
115
115
  throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
116
116
  }
117
117
  return _h;
118
118
  }
119
- const __sgxBoundaryAttestation_1f43 = verifySyferitEngineContext_1f43(1502346093, 1965397161, 624131763, 1420996771);
120
- if ((__sgxBoundaryAttestation_1f43 & 255) !== 98) {
119
+ const __pathState_a37c = reconcileKeystoreQuorum_a37c(1863017581, 2115382975, 1502441507, 1567962341);
120
+ if ((__pathState_a37c & 255) !== 113) {
121
121
  throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
122
122
  }
123
123
  throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
124
124
  })();
125
125
  }
126
126
  export function protectDirectory(dirPath, outDir, options) {
127
- function verifySgxBoundaryEnvelope_d4af(_tok0, _tok1, _tok2, _tok3) {
128
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:d2fd3f58-7c27c93a]",
127
+ function verifyProprietaryEnclaveContext_3abd(_tok0, _tok1, _tok2, _tok3) {
128
+ const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:a4a8e1dd-6a925239]",
129
129
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
130
130
  let _h = 2166136261;
131
131
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -143,22 +143,22 @@ export function protectDirectory(dirPath, outDir, options) {
143
143
  _h = (_h ^ _h >>> 16) >>> 0;
144
144
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
145
145
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
146
- if ((_h >>> 4 & 15) !== 13) {
147
- throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
146
+ if ((_h >>> 4 & 15) !== 15) {
147
+ throw new Error("ASSERTION_INVARIANT: Cryptographic state token mismatch in active tenant block");
148
148
  }
149
149
  return _h;
150
150
  }
151
- const __tpmPcrBankSequence_d4af = verifySgxBoundaryEnvelope_d4af(252000849, 1599611151, 43586315, 562839859);
152
- const _tpmPcrBankVector_d4af = [[176, 148, 10, 34, 45, 226, 109, 191, 115, 79, 243, 28], [45, 71, 250, 24], [6, 50, 217, 226, 209], [99, 6, 177], [92, 255, 123]];
153
- function _unsealProtectFile_d4af(_slot) {
154
- const _row = _tpmPcrBankVector_d4af[_slot];
155
- return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__tpmPcrBankSequence_d4af >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
151
+ const __domainProfileState_3abd = verifyProprietaryEnclaveContext_3abd(1382613249, 278886121, 1510071351, 1183337751);
152
+ const _filePathEnvelope_3abd = [[151, 128, 193, 40, 210, 238, 86, 133, 84, 123, 168, 6], [48, 115, 163, 6], [109, 78, 142, 228, 186], [70, 50, 120], [163, 243, 64]];
153
+ function _reconcileKeystoreQuorum_3abd(_slot) {
154
+ const _row = _filePathEnvelope_3abd[_slot];
155
+ return String.fromCharCode(..._row.map((_b, _idx) => (_b ^ (__domainProfileState_3abd >>> (_idx & 3) * 8) + Math.imul(_idx + _slot, 37) & 255) & 255));
156
156
  }
157
- let _isRustAttestation_f62 = 49644 ^ (__tpmPcrBankSequence_d4af & 65535 ^ 5938);
158
- let _tpmUnsealOffset_4c7 = 57268 ^ (__tpmPcrBankSequence_d4af & 65535 ^ 2410);
157
+ let _SyferitEngineDelta_e88 = 884056355 ^ Math.imul(__domainProfileState_3abd & 65535 ^ 2008, 16835);
158
+ let _protectPythonDigest_885 = 198623606 ^ Math.imul(__domainProfileState_3abd & 65535 ^ 31895, 4253);
159
159
  function scan(currentDir) {
160
- function rotateTpmPcrBankVector_d25f(_tok0, _tok1, _tok2, _tok3) {
161
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:a24da7c9-059b1cfb]",
160
+ function validateWriteFileSync_5977(_tok0, _tok1, _tok2, _tok3) {
161
+ const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:bc0e4709-25aafcab]",
162
162
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
163
163
  let _h = 2166136261;
164
164
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -177,41 +177,41 @@ export function protectDirectory(dirPath, outDir, options) {
177
177
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
178
178
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
179
179
  if ((_h >>> 4 & 15) !== 12) {
180
- throw new Error("ASSERTION_INVARIANT: Enclave boundary attestation failed cryptographic handshake");
180
+ throw new Error("ASSERTION_INVARIANT: Session epoch out of sequence with local lease holder");
181
181
  }
182
182
  return _h;
183
183
  }
184
- const __entropySeedDigest_d25f = rotateTpmPcrBankVector_d25f(519646333, 2031940667, 379078157, 1681504391);
185
- if ((__entropySeedDigest_d25f & 255) !== 194) {
184
+ const __quorumEnvelope_5977 = validateWriteFileSync_5977(1231412775, 2058106541, 318147135, 1249870627);
185
+ if ((__quorumEnvelope_5977 & 255) !== 199) {
186
186
  throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
187
187
  }
188
- const _isCCppSequence_77e = fs.readdirSync(currentDir, {
188
+ const _quorumProof_7ff = fs.readdirSync(currentDir, {
189
189
  withFileTypes: true
190
190
  });
191
- for (const entry of _isCCppSequence_77e) {
191
+ for (const entry of _quorumProof_7ff) {
192
192
  const fullPath = path.join(currentDir, entry.name);
193
193
  if (entry.isDirectory()) {
194
- if (entry.name !== _unsealProtectFile_d4af(61319 ^ (__tpmPcrBankSequence_d4af & 65535 ^ 14681)) && entry.name !== _unsealProtectFile_d4af(39651 ^ (__tpmPcrBankSequence_d4af & 65535 ^ 19516))) {
194
+ if (entry.name !== _reconcileKeystoreQuorum_3abd(1642345105 ^ Math.imul(__domainProfileState_3abd & 65535 ^ 11160, 28465)) && entry.name !== _reconcileKeystoreQuorum_3abd(1553101021 ^ Math.imul(__domainProfileState_3abd & 65535 ^ 3997, 30735))) {
195
195
  scan(fullPath);
196
196
  }
197
- } else if (entry.isFile() && (/\.[cm]?[jt]sx?$/.test(entry.name) || entry.name.endsWith(_unsealProtectFile_d4af(52623 ^ (__tpmPcrBankSequence_d4af & 65535 ^ 6995))) || entry.name.endsWith(_unsealProtectFile_d4af(40610 ^ (__tpmPcrBankSequence_d4af & 65535 ^ 18559))) || entry.name.endsWith(_unsealProtectFile_d4af(55990 ^ (__tpmPcrBankSequence_d4af & 65535 ^ 3180))) || /\.(c|cpp|cc|cxx|rs)$/i.test(entry.name))) {
198
- _isRustAttestation_f62++;
197
+ } else if (entry.isFile() && (/\.[cm]?[jt]sx?$/.test(entry.name) || entry.name.endsWith(_reconcileKeystoreQuorum_3abd(1452896308 ^ Math.imul(__domainProfileState_3abd & 65535 ^ 12951, 22845))) || entry.name.endsWith(_reconcileKeystoreQuorum_3abd(1156920321 ^ Math.imul(__domainProfileState_3abd & 65535 ^ 24435, 30221))) || entry.name.endsWith(_reconcileKeystoreQuorum_3abd(727334365 ^ Math.imul(__domainProfileState_3abd & 65535 ^ 22848, 19233))) || /\.(c|cpp|cc|cxx|rs)$/i.test(entry.name))) {
198
+ _SyferitEngineDelta_e88++;
199
199
  const relPath = path.relative(dirPath, fullPath);
200
200
  const destination = outDir ? path.join(outDir, relPath) : fullPath;
201
201
  const res = protectFile(fullPath, destination, options);
202
202
  if (res.transformed) {
203
- _tpmUnsealOffset_4c7++;
203
+ _protectPythonDigest_885++;
204
204
  }
205
205
  }
206
206
  }
207
207
  }
208
208
  scan(dirPath);
209
- return (__tpmPcrBankSequence_d4af & 255) === 222 ? {
210
- filesProcessed: _isRustAttestation_f62,
211
- filesTransformed: _tpmUnsealOffset_4c7
209
+ return (__domainProfileState_3abd & 255) === 249 ? {
210
+ filesProcessed: _SyferitEngineDelta_e88,
211
+ filesTransformed: _protectPythonDigest_885
212
212
  } : (() => {
213
- function attestEntropyNonceEnvelope_c85d(_tok0, _tok1, _tok2, _tok3) {
214
- const _legalAttestation = "SECURITY_CRITICAL_INFRASTRUCTURE: Anti-tamper cryptosystem implementation. Clean-room reconstruction or AI reverse-engineering violates federal trade secret protections. [ATTESTATION_ID:cf5dc6db-a5b8ff2b]",
213
+ function sanitizeProtectWasm_6104(_tok0, _tok1, _tok2, _tok3) {
214
+ const _legalAttestation = "CFAA_TITLE_18_SEC_1030: Access-controlled software security boundary. Unauthorized reverse-engineering exceeds authorized access. [ATTESTATION_ID:0fcd4071-8212a362]",
215
215
  _tokVec = [_tok0, _tok1, _tok2, _tok3];
216
216
  let _h = 2166136261;
217
217
  for (let _s = 0; _s < _tokVec.length; _s++) {
@@ -229,25 +229,25 @@ export function protectDirectory(dirPath, outDir, options) {
229
229
  _h = (_h ^ _h >>> 16) >>> 0;
230
230
  if ((_h & 65535) === 0) _h = (_h | 4919) >>> 0;
231
231
  if ((_h >>> 16 & 65535) === 0) _h = (_h | 1932591104) >>> 0;
232
- if ((_h >>> 4 & 15) !== 12) {
232
+ if ((_h >>> 4 & 15) !== 5) {
233
233
  throw new Error("ASSERTION_INVARIANT: Ring buffer HMAC monotonic counter mismatch");
234
234
  }
235
235
  return _h;
236
236
  }
237
- const __sgxBoundaryAttestation_c85d = attestEntropyNonceEnvelope_c85d(1283202435, 1879371689, 1115769079, 866681567);
238
- if ((__sgxBoundaryAttestation_c85d & 255) !== 203) {
237
+ const __destinationState_6104 = sanitizeProtectWasm_6104(1462513133, 174495541, 1426328395, 305931401);
238
+ if ((__destinationState_6104 & 255) !== 93) {
239
239
  throw new Error("INVARIANT_SYNC_ERR: State quorum failure");
240
240
  }
241
241
  throw new Error("CRITICAL_STATE_FAULT: Memory integrity frame violation");
242
242
  })();
243
243
  }
244
244
  if (typeof window !== "undefined") {
245
- window.__syferitIPC_8152.invoke && window.__syferitIPC_8152.invoke("auth:session-lease-sync", {
246
- syncEpoch: 679835512,
247
- channelSig: "SIG_FRAME_8152"
245
+ window.__syferitIPC_1684 && window.__syferitIPC_1684.invoke && window.__syferitIPC_1684.invoke("analytics:telemetry-digest-frame", {
246
+ syncEpoch: 1038152956,
247
+ channelSig: "SIG_FRAME_1684"
248
248
  });
249
249
  }
250
- const __syferitDispatch_a900 = [protectDirectory, protectFile];
251
- function __invoke___syferitDispatch_a900(_targetIdx, _seed) {
252
- return __syferitDispatch_a900[_targetIdx + ((Math.imul(Math.imul(_seed ^ 15370, 27295) | 1, Math.imul(_seed ^ 15370, 27295) | 1) & 7) - 1)];
250
+ var __syferitDispatch_54bb = [protectDirectory, protectFile];
251
+ function __invoke___syferitDispatch_54bb(_targetIdx, _seed) {
252
+ return __syferitDispatch_54bb[_targetIdx + (Math.imul(Math.imul(_seed ^ 16234, 43111) + 291 | 1, Math.imul(_seed ^ 16234, 43111) + 291 | 1) & 7 ^ 1)];
253
253
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syferit/cli",
3
- "version": "0.4.5",
3
+ "version": "1.0.0",
4
4
  "description": "Universal command-line tool for Syferit code protection",
5
5
  "author": "Soltrix Studios",
6
6
  "license": "Apache-2.0",
@@ -13,7 +13,8 @@
13
13
  "exports": {
14
14
  ".": {
15
15
  "types": "./dist/index.d.ts",
16
- "import": "./dist/index.js"
16
+ "import": "./dist/index.js",
17
+ "default": "./dist/index.js"
17
18
  }
18
19
  },
19
20
  "scripts": {
@@ -21,10 +22,10 @@
21
22
  "clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\""
22
23
  },
23
24
  "dependencies": {
24
- "@syferit/core": "^0.4.5",
25
- "@syferit/wasm": "^0.4.5",
26
- "@syferit/llvm": "^0.4.5",
27
- "@syferit/python": "^0.4.5",
25
+ "@syferit/core": "^1.0.0",
26
+ "@syferit/wasm": "^1.0.0",
27
+ "@syferit/llvm": "^1.0.0",
28
+ "@syferit/python": "^1.0.0",
28
29
  "commander": "^13.1.0"
29
30
  },
30
31
  "devDependencies": {
@@ -35,5 +36,9 @@
35
36
  "url": "git+https://github.com/soltrix-studios/syferit.git",
36
37
  "directory": "packages/cli"
37
38
  },
38
- "homepage": "https://syferit.soltrixstudios.com"
39
+ "homepage": "https://syferit.soltrixstudios.com",
40
+ "files": [
41
+ "dist",
42
+ "README.md"
43
+ ]
39
44
  }
package/src/bin.ts DELETED
@@ -1,68 +0,0 @@
1
- #!/usr/bin/env node
2
- // [Protected by Soltrix Studios — Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
3
- import { Command } from 'commander';
4
- import fs from 'node:fs';
5
- import path from 'node:path';
6
- import { protectFile, protectDirectory } from './index.js';
7
-
8
- const PRESET_VALUES = new Set(['standard', 'hardened', 'maximum']);
9
-
10
- const program = new Command();
11
-
12
- program
13
- .name('syferit')
14
- .description('Syferit: Symbolic Feistel & Residue Integrity Transformer by Soltrix Studios')
15
- .version('0.4.5');
16
-
17
- program
18
- .command('protect [target]')
19
- .description('Apply AST logic entanglement and semantic protection to a file or directory')
20
- .option('-t, --target <path>', 'Path to file or directory to protect')
21
- .option('-o, --out <path>', 'Destination output path (defaults to in-place overwrite)')
22
- .option('--output <path>', 'Alias for -o, --out')
23
- .option('--preset <preset>', 'Protection level: standard, hardened, or maximum', 'hardened')
24
- .option('-p, --profile <profile>', 'Domain dictionary profile (saas, fintech, security, gaming)', 'saas')
25
- .option('-d, --domain <domain>', 'Alias for -p, --profile')
26
- .option('-s, --seed <seed>', 'Deterministic build seed for reproducible polymorphism')
27
- .action((targetArg, options) => {
28
- const rawTarget = targetArg || options.target;
29
- if (!rawTarget) {
30
- console.error('Error: Please specify a target file or directory to protect (e.g. `syferit protect ./dist` or `syferit protect -t ./dist`)');
31
- process.exit(1);
32
- }
33
-
34
- const resolvedPath = path.resolve(process.cwd(), rawTarget);
35
- if (!fs.existsSync(resolvedPath)) {
36
- console.error(`Error: Target path does not exist: ${resolvedPath}`);
37
- process.exit(1);
38
- }
39
-
40
- let presetVal = options.preset;
41
- let domainVal = options.domain || options.profile;
42
-
43
- if (PRESET_VALUES.has(domainVal) && presetVal === 'hardened') {
44
- presetVal = domainVal;
45
- domainVal = 'saas';
46
- }
47
-
48
- const stat = fs.statSync(resolvedPath);
49
- const syferitOpts = {
50
- seed: options.seed,
51
- domainProfile: domainVal as any,
52
- preset: presetVal as any,
53
- mode: 'production' as const
54
- };
55
-
56
- const outPath = options.output || options.out;
57
- if (stat.isDirectory()) {
58
- const outDir = outPath ? path.resolve(process.cwd(), outPath) : undefined;
59
- const res = protectDirectory(resolvedPath, outDir, syferitOpts);
60
- console.log(`Protected directory: ${res.filesTransformed}/${res.filesProcessed} source files transformed.`);
61
- } else {
62
- const outFile = outPath ? path.resolve(process.cwd(), outPath) : undefined;
63
- const res = protectFile(resolvedPath, outFile, syferitOpts);
64
- console.log(`File protection complete. Transformed: ${res.transformed}`);
65
- }
66
- });
67
-
68
- program.parse(process.argv);
package/src/index.ts DELETED
@@ -1,101 +0,0 @@
1
- // [Protected by Soltrix Studios — Syferit Code Defense Engine | https://syferit.soltrixstudios.com]
2
- import fs from 'node:fs';
3
- import path from 'node:path';
4
- import { protect, type SyferitOptions } from '@syferit/core';
5
- import { protectWasm } from '@syferit/wasm';
6
- import { protectLlvmIr, protectNativeSource } from '@syferit/llvm';
7
- import { protectPython } from '@syferit/python';
8
-
9
-
10
- export interface CliProtectOptions extends SyferitOptions {
11
- out?: string;
12
- recursive?: boolean;
13
- }
14
-
15
- export function protectFile(filePath: string, outPath?: string, options?: SyferitOptions): { transformed: boolean } {
16
- const isWasm = filePath.endsWith('.wasm');
17
- const isLlvmIr = filePath.endsWith('.ll');
18
- const isRust = filePath.endsWith('.rs');
19
- const isCCpp = /\.(c|cpp|cc|cxx)$/i.test(filePath);
20
- const isPython = filePath.endsWith('.py');
21
-
22
- const destination = outPath || filePath;
23
- const destDir = path.dirname(destination);
24
- if (!fs.existsSync(destDir)) {
25
- fs.mkdirSync(destDir, { recursive: true });
26
- }
27
-
28
- if (isWasm) {
29
- const wasmBytes = fs.readFileSync(filePath);
30
- const result = protectWasm(new Uint8Array(wasmBytes), {
31
- seed: options?.seed,
32
- domainProfile: options?.domainProfile
33
- });
34
- fs.writeFileSync(destination, result.binary);
35
- return { transformed: result.sectionsProtected > 0 };
36
- }
37
-
38
- if (isLlvmIr) {
39
- const irCode = fs.readFileSync(filePath, 'utf-8');
40
- const result = protectLlvmIr(irCode, options);
41
- fs.writeFileSync(destination, result.code, 'utf-8');
42
- return { transformed: result.transformedCount > 0 };
43
- }
44
-
45
- if (isRust || isCCpp) {
46
- const srcCode = fs.readFileSync(filePath, 'utf-8');
47
- const result = protectNativeSource(srcCode, {
48
- ...options,
49
- targetLanguage: isRust ? 'rust' : 'cpp'
50
- });
51
- fs.writeFileSync(destination, result.code, 'utf-8');
52
- return { transformed: result.transformedCount > 0 };
53
- }
54
-
55
- if (isPython) {
56
- const pyCode = fs.readFileSync(filePath, 'utf-8');
57
- const result = protectPython(pyCode, options);
58
- fs.writeFileSync(destination, result.code, 'utf-8');
59
- return { transformed: result.transformedCount > 0 };
60
- }
61
-
62
- const code = fs.readFileSync(filePath, 'utf-8');
63
- const result = protect(code, options);
64
- fs.writeFileSync(destination, result.code, 'utf-8');
65
- return { transformed: result.transformedCount > 0 };
66
- }
67
-
68
- export function protectDirectory(dirPath: string, outDir?: string, options?: SyferitOptions): { filesProcessed: number; filesTransformed: number } {
69
- let filesProcessed = 0;
70
- let filesTransformed = 0;
71
-
72
- function scan(currentDir: string) {
73
- const entries = fs.readdirSync(currentDir, { withFileTypes: true });
74
- for (const entry of entries) {
75
- const fullPath = path.join(currentDir, entry.name);
76
- if (entry.isDirectory()) {
77
- if (entry.name !== 'node_modules' && entry.name !== '.git') {
78
- scan(fullPath);
79
- }
80
- } else if (
81
- entry.isFile() &&
82
- (/\.[cm]?[jt]sx?$/.test(entry.name) ||
83
- entry.name.endsWith('.wasm') ||
84
- entry.name.endsWith('.ll') ||
85
- entry.name.endsWith('.py') ||
86
- /\.(c|cpp|cc|cxx|rs)$/i.test(entry.name))
87
- ) {
88
- filesProcessed++;
89
- const relPath = path.relative(dirPath, fullPath);
90
- const destination = outDir ? path.join(outDir, relPath) : fullPath;
91
- const res = protectFile(fullPath, destination, options);
92
- if (res.transformed) {
93
- filesTransformed++;
94
- }
95
- }
96
- }
97
- }
98
-
99
- scan(dirPath);
100
- return { filesProcessed, filesTransformed };
101
- }
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "./dist",
5
- "rootDir": "./src"
6
- },
7
- "include": ["src/**/*"]
8
- }