Advertisement
Doudawak

Symantec Cloud API example

Dec 16th, 2022
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 8.03 KB | Cybersecurity | 0 0
  1. {
  2.     "add": {
  3.         "applications": [
  4.             {
  5.                 "processfile": {
  6.                     "sha2": "6ddc5c11925ab348eb0d390ec5179c1d655eb4bf70779f7a4e28b7db485d20ea",
  7.                     "name": "myfilename"
  8.                 }
  9.             }
  10.         ],
  11.         "certificates": [
  12.             {
  13.                 "signature_issuer": "test issuer",
  14.                 "signature_company_name": "mycomp",
  15.                 "signature_fingerprint": {
  16.                     "algorithm": "sha1",
  17.                     "value": "D33FCA9051B49458E3DCC50EEC2B8248030E5999"
  18.                 }
  19.             },
  20.             {
  21.                 "signature_issuer": "symantec",
  22.                 "signature_company_name": "symantec",
  23.                 "signature_fingerprint": {
  24.                     "algorithm": "sha1",
  25.                     "value": "1cc87a32fc7d3e11aedb46bbdc07200b891aa042"
  26.                 },
  27.                 "signature_fingerprint_sha2": {
  28.                     "algorithm": "sha2",
  29.                     "value": "9222b9012a614f4ed5819eac9d95997df1bd122764a5e45dd6311b056614a523"
  30.                 }
  31.             }
  32.         ],
  33.         "webdomains": [
  34.             {
  35.                 "domain": "mytestdomain.com"
  36.             }
  37.         ],
  38.         "ips_hosts": [
  39.             {
  40.                 "ip": "10.211.242.22"
  41.             },
  42.             {
  43.                 "ip": "c822:c705:a853:54db:c64c:67dd:afe4:c15b"
  44.             },
  45.             {
  46.                 "ipv4_subnet": {
  47.                     "ip": "255.255.255.0",
  48.                     "mask": "255.255.255.0"
  49.                 }
  50.             },
  51.             {
  52.                 "ipv6_subnet": "2001:db8:abcd:0012::0/64"
  53.             },
  54.             {
  55.                 "ip_range": {
  56.                     "ip_start": "10.211.242.33",
  57.                     "ip_end": "10.211.242.35"
  58.                 }
  59.             },
  60.             {
  61.                 "ip_range": {
  62.                     "ip_start": "2001:0db8:85a3:0000:0000:0000:0000:0000",
  63.                     "ip_end": "2001:0db8:85a3:0000:ffff:ffff:ffff:ffff"
  64.                 }
  65.             }
  66.         ],
  67.         "extensions": {
  68.             "names": [
  69.                 "txt",
  70.                 "exe",
  71.                 "doc"
  72.             ],
  73.             "scheduled": true,
  74.             "features": [
  75.                 "AUTO_PROTECT"
  76.             ]
  77.         },
  78.         "mac": {
  79.             "files": [
  80.                 {
  81.                     "pathvariable": "[NONE]",
  82.                     "path": "/usr/test.txt",
  83.                     "scheduled": true,
  84.                     "features": [
  85.                         "AUTO_PROTECT",
  86.                         "BEHAVIORAL_ANALYSIS",
  87.                         "TAMPER_PROTECTION",
  88.                         "DEVICE_CONTROL"
  89.                     ]
  90.                 }
  91.             ],
  92.             "directories": [
  93.                 {
  94.                     "pathvariable": "[HOME]",
  95.                     "directory": "mypath/tofile",
  96.                     "recursive": true,
  97.                     "scheduled": true,
  98.                     "features": [
  99.                         "AUTO_PROTECT",
  100.                         "BEHAVIORAL_ANALYSIS",
  101.                         "DEVICE_CONTROL"
  102.                     ]
  103.                 }
  104.             ]
  105.         },
  106.         "windows": {
  107.             "files": [
  108.                 {
  109.                     "pathvariable": "[NONE]",
  110.                     "path": "c:\\test\\file.txt",
  111.                     "scheduled": true,
  112.                     "features": [
  113.                         "AUTO_PROTECT",
  114.                         "BEHAVIORAL_ANALYSIS",
  115.                         "TAMPER_PROTECTION",
  116.                         "DEVICE_CONTROL"
  117.                     ]
  118.                 }
  119.             ],
  120.             "directories": [
  121.                 {
  122.                     "pathvariable": "[COMMON_APPDATA]",
  123.                     "directory": "hre\\test",
  124.                     "recursive": true,
  125.                     "scheduled": true,
  126.                     "features": [
  127.                         "AUTO_PROTECT",
  128.                         "BEHAVIORAL_ANALYSIS",
  129.                         "DEVICE_CONTROL"
  130.                     ]
  131.                 }
  132.             ]
  133.         },
  134.         "linux": {
  135.             "files": [
  136.                 {
  137.                     "pathvariable": "[NONE]",
  138.                     "path": "/user/path/test.txt",
  139.                     "scheduled": true,
  140.                     "features": [
  141.                         "AUTO_PROTECT",
  142.                         "BEHAVIORAL_ANALYSIS"
  143.                     ]
  144.                 }
  145.             ],
  146.             "directories": [
  147.                 {
  148.                     "pathvariable": "[ROOT]",
  149.                     "directory": "path/test",
  150.                     "recursive": true,
  151.                     "scheduled": true,
  152.                     "features": [
  153.                         "AUTO_PROTECT",
  154.                         "BEHAVIORAL_ANALYSIS",
  155.                         "DEVICE_CONTROL"
  156.                     ]
  157.                 }
  158.             ]
  159.         }
  160.     },
  161.     "remove": {
  162.         "applications": [
  163.             {
  164.                 "processfile": {
  165.                     "sha2": "4444b9012a614f4ed5819eac9d95997df1bd122764a5e45dd6311b056614a523"
  166.                 }
  167.             }
  168.         ],
  169.         "certificates": [
  170.             {
  171.                 "signature_fingerprint": {
  172.                     "algorithm": "sha1",
  173.                     "value": "77787a32fc7d3e11aedb46bbdc07200b891aa042"
  174.                 }
  175.             }
  176.         ],
  177.         "webdomains": [
  178.             {
  179.                 "domain": "domaintoremove.com"
  180.             }
  181.         ],
  182.         "ips_hosts": [
  183.             {
  184.                 "ip": "10.210.33.12"
  185.             },
  186.             {
  187.                 "ip": "c799:c705:a853:54db:c64c:67dd:afe4:c15b"
  188.             },
  189.             {
  190.                 "ipv4_subnet": {
  191.                     "ip": "10.232.22.3",
  192.                     "mask": "255.255.0.0"
  193.                 }
  194.             },
  195.             {
  196.                 "ipv6_subnet": "2009:778:abcd:0012::0/64"
  197.             },
  198.             {
  199.                 "ip_range": {
  200.                     "ip_start": "10.211.249.88",
  201.                     "ip_end": "10.211.249.90"
  202.                 }
  203.             },
  204.             {
  205.                 "ip_range": {
  206.                     "ip_start": "2009:0db8:85a3:0000:0000:0000:0000:0000",
  207.                     "ip_end": "2009:0db8:85a3:0000:ffff:ffff:ffff:ffff"
  208.                 }
  209.             }
  210.         ],
  211.         "extensions": {
  212.             "names": [
  213.                 "pdf"
  214.             ],
  215.             "scheduled": false,
  216.             "features": [
  217.                 "AUTO_PROTECT"
  218.             ]
  219.         },
  220.         "mac": {
  221.             "files": [
  222.                 {
  223.                     "pathvariable": "[NONE]",
  224.                     "path": "/usr/testfile.exe"
  225.                 }
  226.             ],
  227.             "directories": [
  228.                 {
  229.                     "pathvariable": "[HOME]",
  230.                     "directory": "testpath/tofile"
  231.                 }
  232.             ]
  233.         },
  234.         "windows": {
  235.             "files": [
  236.                 {
  237.                     "pathvariable": "[COMMON_APPDATA]",
  238.                     "path": "test\\file.txt",
  239.                     "scheduled": true,
  240.                     "features": [
  241.                         "AUTO_PROTECT",
  242.                         "BEHAVIORAL_ANALYSIS",
  243.                         "TAMPER_PROTECTION",
  244.                         "DEVICE_CONTROL"
  245.                     ]
  246.                 }
  247.             ],
  248.             "directories": [
  249.                 {
  250.                     "pathvariable": "[NONE]",
  251.                     "directory": "c:\\hre\\test"
  252.                 }
  253.             ]
  254.         },
  255.         "linux": {
  256.             "files": [
  257.                 {
  258.                     "pathvariable": "[NONE]",
  259.                     "path": "/user/test/test.txt"
  260.                 }
  261.             ],
  262.             "directories": [
  263.                 {
  264.                     "pathvariable": "[NONE]",
  265.                     "directory": "/path/test"
  266.                 }
  267.             ]
  268.         }
  269.     }
  270. }
  271.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement