1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946
|
<?xml version="1.0"?>
<!--
SPDX-FileCopyrightText: 2014-2023 Greenbone AG
SPDX-License-Identifier: GPL-2.0-or-later
-->
<protocol>
<name>Open Scanner Protocol</name>
<abbreviation>OSP</abbreviation>
<summary>The Open Scanner Protocol</summary>
<version>25.0</version>
<!-- Types. -->
<type>
<name>boolean</name>
<summary>0 or 1</summary>
<pattern>
<e>xsd:token { pattern = "[01]" }</e>
</pattern>
</type>
<type>
<name>epoch_time</name>
<summary>A date, in Unix format</summary>
<pattern>
<e>integer</e>
</pattern>
</type>
<type>
<name>integer</name>
<summary>An integer</summary>
<pattern>
<e>integer</e>
</pattern>
</type>
<type>
<name>status</name>
<summary>Status code describing the result of a command</summary>
<pattern>
<e>xsd:token { pattern = "[1-5][0-9][0-9]" }</e>
</pattern>
</type>
<type>
<name>string</name>
<summary>A string</summary>
<pattern>
<e>text</e>
</pattern>
</type>
<type>
<name>uuid</name>
<summary>A Universally Unique Identifier (UUID)</summary>
<pattern>
<e>xsd:token { pattern = "[0-9abcdefABCDEF\-]{1,40}" }</e>
</pattern>
</type>
<type>
<name>vt_id</name>
<summary>Identifier for a vulnerability test</summary>
<pattern>
<e>xsd:token { pattern = "[0-9a-zA-Z_\-.:]{1,80}" }</e>
</pattern>
</type>
<!-- Elements. -->
<element>
<name>credential</name>
<summary>A credential consisting of type, service, port, username and password.</summary>
<pattern>
<attrib>
<name>type</name>
<type>string</type>
<required>1</required>
</attrib>
<attrib>
<name>service</name>
<type>string</type>
<required>1</required>
</attrib>
<attrib>
<name>port</name>
<type>string</type>
</attrib>
<e>username</e>
<e>password</e>
<e>private</e>
<e>priv_username</e>
<e>priv_password</e>
<e>community</e>
<e>auth_algorithm</e>
<e>privacy_password</e>
<e>privacy_algorithm</e>
<e>realm</e>
<e>kdc</e>
</pattern>
<ele>
<name>username</name>
<pattern>text</pattern>
</ele>
<ele>
<name>password</name>
<pattern>text</pattern>
</ele>
<ele>
<name>private</name>
<pattern>file</pattern>
</ele>
<ele>
<name>priv_username</name>
<pattern>text</pattern>
</ele>
<ele>
<name>priv_password</name>
<pattern>text</pattern>
</ele>
<ele>
<name>community</name>
<pattern>text</pattern>
</ele>
<ele>
<name>auth_algorithm</name>
<pattern>text</pattern>
</ele>
<ele>
<name>privacy_password</name>
<pattern>text</pattern>
</ele>
<ele>
<name>privacy_algorithm</name>
<pattern>text</pattern>
</ele>
<ele>
<name>realm</name>
<pattern>text</pattern>
</ele>
<ele>
<name>kdc</name>
<pattern>text</pattern>
</ele>
<example>
<summary>SSH Credential with username + password authentication and port</summary>
<e>
<credential type="up" service="ssh" port="22">
<username>scanuser</username>
<password>mypass</password>
</credential>
</e>
</example>
<example>
<summary>SSH Credential with username + SSH Key authentication and port</summary>
<e>
<credential type="usk" service="ssh" port="22">
<username>scanuser</username>
<password>keypass</password>
<private>/path/to/ssh/keyfile</private>
</credential>
</e>
</example>
<example>
<summary>SSH Credential with elevated privileges</summary>
<e>
<credential type="up" service="ssh" port="22">
<username>scanuser</username>
<password>mypass</password>
<priv_username>root</priv_username>
<priv_password>rootpw</priv_password>
</credential>
</e>
</example>
<example>
<summary>ESXi Credential with username + password authentication</summary>
<e>
<credential type="up" service="smb">
<username>smbuser</username>
<password>mypass</password>
</credential>
</e>
</example>
<example>
<summary>SNMP Credentials</summary>
<e>
<credential type="snmp" service="snmp">
<username>smbuser</username>
<password>mypass</password>
<community>public</community>
<auth_algorithm>md5</auth_algorithm>
<privacy_password>privpass</privacy_password>
<privacy_algorithm>aes</privacy_algorithm>
</credential>
</e>
</example>
<example>
<summary>Kerberos Credentials. The kdc value is only used when no matching realm was found.</summary>
<e>
<credential type="up" service="krb5">
<username>krb5user</username>
<password>mypass</password>
<realm>myrealm</realm>
<kdc>mykdc</kdc>
</credential>
</e>
</example>
</element>
<element>
<name>scanner_params</name>
<summary>Contains elements that represent scanner specific parameters</summary>
<pattern>
<e>e</e>
</pattern>
<ele>
<name>e</name>
<summary>Element that represents a scanner specific parameters</summary>
<type>string</type>
<pattern>string</pattern>
</ele>
<example>
<summary>scanner_params</summary>
<e>
<scanner_params>
<target_port>443</target_port>
<use_https>1</use_https>
<profile>fast_scan</profile>
</scanner_params>
</e>
</example>
</element>
<element>
<name>targets</name>
<summary>Includes one target element (deprecated)</summary>
<pattern>
<e>target</e>
</pattern>
<example>
<summary>Two targets</summary>
<e>
<targets>
<target>...</target>
</targets>
</e>
</example>
</element>
<element>
<name>target</name>
<summary>A scan target consisting of hosts, a port selection and credentials</summary>
<pattern>
<e>hosts</e>
<e>ports</e>
<e>credentials</e>
<e>exclude_hosts</e>
<e>finished_hosts</e>
<e>alive_test_ports</e>
<or>
<e>alive_test</e>
<e>alive_test_methods</e>
</or>
<e>reverse_lookup_unify</e>
<e>reverse_lookup_only</e>
</pattern>
<ele>
<name>hosts</name>
<summary>One or many hosts. The list is comma-separated. Each entry can be a IP address, a CIDR notation, a hostname, a IP range. IPs can be v4 or v6</summary>
<type>string</type>
</ele>
<ele>
<name>ports</name>
<type>string</type>
<summary>A list of ports that is the same for the given hosts</summary>
</ele>
<ele>
<name>credentials</name>
<summary>One or many credentials containing the credential for the given hosts</summary>
<pattern>
<e>credential</e>
</pattern>
</ele>
<ele>
<name>exclude_hosts</name>
<summary>One or many hosts to exclude. The list is comma-separated. Each entry can be a IP address, a CIDR notation, a hostname, a IP range. IPs can be v4 or v6. Each wrapper must handle the exclude hosts
</summary>
<type>string</type>
</ele>
<ele>
<name>finished_hosts</name>
<summary>One or many finished hosts to exclude when the client resumes a task. The list is comma-separated. Each entry can be an IP address, a CIDR notation, a hostname, a IP range. IPs can be v4 or v6. The listed hosts will be set as finished before starting the scan. Each wrapper must handle the finished hosts
</summary>
<type>string</type>
</ele>
<ele>
<name>alive_test</name>
<summary>Alive test type to be performed against the target</summary>
<type>integer</type>
</ele>
<ele>
<name>alive_test_methods</name>
<summary>Alive test methods to be performed against the target</summary>
<pattern>
<e>icmp</e>
</pattern>
<ele>
<name>icmp</name>
<summary>ICMP ping</summary>
<type>boolean</type>
</ele>
<pattern>
<e>tcp_syn</e>
</pattern>
<ele>
<name>tcp_syn</name>
<summary>TCP-SYN ping</summary>
<type>boolean</type>
</ele>
<pattern>
<e>tcp_ack</e>
</pattern>
<ele>
<name>tcp_ack</name>
<summary>TCP-ACK ping</summary>
<type>boolean</type>
</ele>
<pattern>
<e>arp</e>
</pattern>
<ele>
<name>arp</name>
<summary>ARP ping</summary>
<type>boolean</type>
</ele>
<pattern>
<e>consider_alive</e>
</pattern>
<ele>
<name>consider_alive</name>
<summary>Consider the target to be alive</summary>
<type>boolean</type>
</ele>
</ele>
<ele>
<name>alive_test_ports</name>
<summary>Dedicated port list for alive detection. Used for TCP-SYN and TCP-ACK ping when Boreas (scanner preference test_alive_hosts_only) is enabled. If no port list is provided ports 80, 137, 587, 3128, 8081 are used as defaults</summary>
<type>string</type>
</ele>
<ele>
<name>reverse_lookup_only</name>
<summary>Only scan IP addresses that can be resolved into a DNS name</summary>
<type>string</type>
</ele>
<ele>
<name>reverse_lookup_unify</name>
<summary>If multiple IP addresses resolve to the same DNS name the DNS name will only get scanned once</summary>
<type>string</type>
</ele>
<example>
<summary>Target without credentials</summary>
<e>
<target>
<hosts>example.org</hosts>
<ports>T:22,U:5060</ports>
<alive_test>0</alive_test>
<alive_test_ports>22,80,123</alive_test_ports>
<reverse_lookup_only>0</reverse_lookup_only>
<reverse_lookup_unify>0</reverse_lookup_unify>
</target>
</e>
</example>
<example>
<summary>Target with two credentials</summary>
<e>
<target>
<hosts>192.168.1.0/24</hosts>
<ports>1,2,3,80,443</ports>
<credentials>
<credential>...</credential>
<credential>...</credential>
</credentials>
<exclude_hosts>192.168.1.10-15</exclude_hosts>
<finished_hosts>192.168.1.1-3</finished_hosts>
</target>
</e>
</example>
</element>
<element>
<name>vt_group</name>
<summary>Collection of Vulnerability Test</summary>
<pattern>
<attrib>
<name>filter</name>
<type>string</type>
<required>1</required>
</attrib>
</pattern>
<example>
<summary>VT group filtered by family name </summary>
<e>
<vt_group filter='family=general'/>
<vt_group filter='family=debian'/>
</e>
</example>
</element>
<element>
<name>vt_selection</name>
<summary>Contains elements that represent a Vulnerability Test or a collection of Vulnerability Tests to be executed and their parameters</summary>
<pattern>
<e>vt_single</e>
<e>vt_group</e>
</pattern>
<example>
<summary>VT with parameters and VT group </summary>
<e>
<vt_selection>
<vt_single id='1.3.6.1.4.1.25623.1.0.10662'>
<vt_value id='XYZ JKL'>200</vt_value>
<vt_value id='ABC'>yes</vt_value>
</vt_single>
<vt_single id='1.3.6.1.4.1.25623.1.0.10330'></vt_single>
<vt_single id='1.3.6.1.4.1.25623.1.0.100034'></vt_single>
<vt_group filter='family=general'/>
<vt_group filter='family=debian'/>
</vt_selection>
</e>
</example>
</element>
<element>
<name>vt_single</name>
<summary>Elements that represent Vulnerability Tests</summary>
<pattern>
<attrib>
<name>id</name>
<summary>Identifier for a vulnerability test</summary>
<type>vt_id</type>
<required>1</required>
</attrib>
<e>vt_value</e>
</pattern>
<example>
<summary>VT with parameters</summary>
<e>
<vt_single id='1.3.6.1.4.1.25623.1.0.10662'>
<vt_value id='XYZ JKL'>200</vt_value>
<vt_value id='ABC'>yes</vt_value>
</vt_single>
<vt_single id='1.3.6.1.4.1.25623.1.0.10330'></vt_single>
</e>
</example>
</element>
<element>
<name>vt_value</name>
<summary>Vulnerability Test parameter</summary>
<pattern>
<attrib>
<name>id</name>
<type>string</type>
<required>1</required>
</attrib>
string
</pattern>
<example>
<summary>Parameters for a single VT</summary>
<e>
<vt_value id='XYZ JKL'>200</vt_value>
<vt_value id='ABC'>yes</vt_value>
</e>
</example>
</element>
<!-- Commands. -->
<command>
<name>help</name>
<summary>Get the help text</summary>
<pattern>
<attrib>
<name>format</name>
<summary>Help format</summary>
<type>
<alts>
<alt>xml</alt>
<alt>text</alt>
</alts>
</type>
</attrib>
</pattern>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
text
</pattern>
</response>
<example>
<summary>Get the help text</summary>
<request>
<help format='xml'/>
</request>
<response>
<help_response status_text="OK" status="200">
<delete_scan>
<attributes>
<scan_id>ID of scan to delete</scan_id>
</attributes>
<elements></elements>
<description>Delete a finished scan</description>
</delete_scan>
<help>
<attributes>
<format>Help format. Could be text or xml</format>
</attributes>
<elements></elements>
<description>Print the commands help</description>
</help>
<get_version>
<attributes></attributes>
<elements></elements>
<description>Return various versions</description>
</get_version>
<check_feed>
<attributes></attributes>
<elements></elements>
<description>Perform sync feed self test and check lockfile status</description>
</check_feed>
<stop_scan>
<attributes>
<scan_id>ID of scan stop.</scan_id>
</attributes>
<elements></elements>
<description>Stop a currently running scan.</description>
</stop_scan>
<get_scanner_details>
<attributes></attributes>
<elements></elements>
<description>Return scanner description and parameters</description>
</get_scanner_details>
<start_scan>
<attributes>
<scan_id>Optional UUID value to set as scan ID</scan_id>
<target>Target hosts to scan in a comma-separated list</target>
<ports>Ports list to scan as comma-separated list</ports>
<parallel>Optional number of parallel scans to run</parallel>
</attributes>
<elements>
<scanner_params>
<profile>Scan profile</profile>
<target_port>Target port</target_port>
<use_https>Use HTTPS</use_https>
<w3af_timeout>w3af scan timeout</w3af_timeout>
</scanner_params>
</elements>
<description>Start a new scan</description>
</start_scan>
<stop_scan>
<attributes>
<scan_id>ID of scan to stop</scan_id>
</attributes>
<description>Stop a currently running scan</description>
</stop_scan>
<get_scans>
<attributes>
<scan_id>Mandatory ID of a specific scan to get</scan_id>
<details>Whether to return the full scan report</details>
<progress>Whether to return a detailed progress information</progress>
<pop_results>Whether to remove the fetched results</pop_results>
<max_results>Maximum number of results to fetch. Only considered if pop_results is enabled. Default = None, which means that all available results are returned</max_results>
</attributes>
<elements></elements>
<description>List the scans in buffer</description>
</get_scans>
<get_performance>
<description>Return system report</description>
<elements/>
<attributes>
<title>Name of report.</title>
<start>Time of first data point in report.</start>
<end>Time of last data point in report.</end>
</attributes>
</get_performance>
</help_response>
</response>
</example>
</command>
<command>
<name>get_performance</name>
<summary>Return performance information from an external program</summary>
<pattern>
<attrib>
<name>start</name>
<summary>Interval start</summary>
<type>int</type>
</attrib>
<attrib>
<name>end</name>
<summary>Interval end</summary>
<type>int</type>
</attrib>
<attrib>
<name>titles</name>
<summary>Interval title to get</summary>
<type>text</type>
</attrib>
</pattern>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
text
</pattern>
</response>
<example>
<request>
<get_performance start='0' titles='mem'/>
</request>
<response>
<help_response status="200" status_text="OK">
Some output.
</help_response>
</response>
</example>
</command>
<command>
<name>get_scans</name>
<summary>Get a stored scan in buffer</summary>
<pattern>
<attrib>
<name>scan_id</name>
<summary>Scan UUID</summary>
<type>uuid</type>
</attrib>
<attrib>
<name>details</name>
<summary>Whether to get full scan reports</summary>
<type>boolean</type>
</attrib>
<attrib>
<name>progress</name>
<summary>Whether to return a detailed progress information</summary>
<type>boolean</type>
</attrib>
<attrib>
<name>pop_results</name>
<summary>Whether to remove the fetched results</summary>
<type>boolean</type>
</attrib>
<attrib>
<name>max_results</name>
<summary>Maximum number of results to fetch. Only considered if pop_results is enabled. Default = None, which means that all available results are returned</summary>
<type>int</type>
</attrib>
</pattern>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
<any>
<e>scan</e>
</any>
</pattern>
<ele>
<name>scan</name>
<pattern>
<attrib>
<name>id</name>
<type>uuid</type>
</attrib>
<attrib>
<name>target</name>
<type>string</type>
</attrib>
<attrib>
<name>start_time</name>
<type>epoch_time</type>
</attrib>
<attrib>
<name>end_time</name>
<type>epoch_time</type>
</attrib>
<attrib>
<name>progress</name>
<type>integer</type>
</attrib>
<attrib>
<name>status</name>
<type>string</type>
</attrib>
<ele>
<name>results</name>
</ele>
</pattern>
</ele>
</response>
<example>
<summary>Get a scan report summary</summary>
<request>
<get_scans scan_id="f14747d3-a4d7-4e79-99bb-a0a1276cb78c" details="1" pop_results="0"/>
</request>
<response>
<get_scans_response status_text="OK" status="200">
<scan id="9750f1f8-07aa-49cc-9c31-2f9e469c8f65" target="192.168.1.252" end_time="1432824234" progress="100" status="finished" start_time="1432824206">
<results>
<result host="192.168.1.252" hostname="" severity="2.5" port="443/tcp" test_id="" name="Path disclosure vulnerability" type="Alarm">
The URL: "https://192.168.1.252/" has a path
disclosure vulnerability which discloses "/var/www/phpinfo.php"
...
</result>
...
</results>
</scan>
</get_scans_response>
</response>
</example>
<example>
<summary>Get a scan report summary</summary>
<request>
<get_scans scan_id="f14747d3-a4d7-4e79-99bb-a0a1276cb78c" details="1" pop_results="1" max_results="1"/>
</request>
<response>
<get_scans_response status_text="OK" status="200">
<scan id="9750f1f8-07aa-49cc-9c31-2f9e469c8f65" target="192.168.1.252" end_time="1432824234" progress="100" status="finished" start_time="1432824206">
<results>
<result host="192.168.1.252" hostname="" severity="2.5" port="443/tcp" test_id="" name="Path disclosure vulnerability" type="Alarm">
The URL: "https://192.168.1.252/" has a path
disclosure vulnerability which discloses "/var/www/phpinfo.php"
...
</result>
</results>
</scan>
</get_scans_response>
</response>
</example>
<example>
<summary>Get a scan progress summary</summary>
<request>
<get_scans scan_id="f14747d3-a4d7-4e79-99bb-a0a1276cb78c" details="0" progress="1"/>
</request>
<response>
<get_scans_response status="200" status_text="OK">
<scan end_time="0" id="f14747d3-a4d7-4e79-99bb-a0a1276cb78c" progress="17" start_time="1592316467" status="running" target="192.168.56.100, 127.0.0.1">
<progress>
<host name="127.0.0.1">2</host>
<host name="192.168.56.100">32</host>
<overall>17</overall>
<count_alive>0</count_alive>
<count_dead>0</count_dead>
<count_excluded>0</count_excluded>
<count_total>2</count_total>
</progress>
</scan>
</get_scans_response>
</response>
</example>
</command>
<command>
<name>delete_scan</name>
<summary>Delete a finished scan</summary>
<pattern>
<attrib>
<name>scan_id</name>
<summary>Scan UUID</summary>
<type>uuid</type>
</attrib>
</pattern>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
</pattern>
</response>
<example>
<summary>Delete a scan successfully</summary>
<request>
<delete_scan scan_id="013587e3-b4d7-8e79-9ebb-90a2133c338c"/>
</request>
<response>
<delete_scan_response status_text="OK" status="200"></delete_scan_response>
</response>
</example>
</command>
<command>
<name>get_version</name>
<summary>Return various versions</summary>
<pattern/>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
<e>protocol</e>
<e>daemon</e>
<e>scanner</e>
<e>vts</e>
</pattern>
<ele>
<name>protocol</name>
<pattern>
<e>name</e>
<e>version</e>
</pattern>
<ele>
<name>version</name>
</ele>
<ele>
<name>name</name>
</ele>
</ele>
<ele>
<name>daemon</name>
<pattern>
<e>name</e>
<e>version</e>
</pattern>
<ele>
<name>version</name>
</ele>
<ele>
<name>name</name>
</ele>
</ele>
<ele>
<name>scanner</name>
<pattern>
<e>name</e>
<e>version</e>
</pattern>
<ele>
<name>version</name>
</ele>
<ele>
<name>name</name>
</ele>
</ele>
<ele>
<name>vts</name>
<pattern>
<e>name</e>
<e>version</e>
<e>home</e>
<e>vendor</e>
</pattern>
<ele>
<name>version</name>
</ele>
<ele>
<name>name</name>
</ele>
<ele>
<name>home</name>
</ele>
<ele>
<name>vendor</name>
</ele>
</ele>
</response>
<example>
<summary>Get protocol, scanner and daemon versions</summary>
<request>
<get_version/>
</request>
<response>
<get_version_response status_text="OK" status="200">
<protocol>
<version>1.0</version>
<name>OSP</name>
</protocol>
<daemon>
<version>generic version</version>
<name>generic ospd</name>
</daemon>
<scanner>
<version>1.6.0.4</version>
<name>w3af</name>
</scanner>
<vts>
<version>202112070837</version>
<vendor>Greenbone AG</vendor>
<home>https://www.greenbone.net/en/feed-comparison/</home>
<name>Greenbone Security Feed</name>
</vts>
</get_version_response>
</response>
</example>
</command>
<command>
<name>check_feed</name>
<summary>Perform sync feed self test and check lockfile status</summary>
<pattern/>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
<e>feed</e>
</pattern>
<ele>
<name>feed</name>
<pattern>
<e>lockfile_in_use</e>
<e>self_test_exit_error</e>
<e>self_test_error_msg</e>
</pattern>
<ele>
<name>lockfile_in_use</name>
</ele>
<ele>
<name>self_test_exit_error</name>
</ele>
<ele>
<name>self_test_error_msg</name>
</ele>
</ele>
</response>
<example>
<summary>Perform sync feed self test and check lockfile status</summary>
<request>
<check_feed/>
</request>
<response>
<check_feed_response status_text="OK" status="200">
<feed>
<lockfile_in_use>0</lockfile_in_use>
<self_test_exit_error>0</self_test_exit_error>
<self_test_error_msg/>
</feed>
</check_feed_response>
</response>
</example>
</command>
<command>
<name>get_scanner_details</name>
<summary>Return scanner description and parameters</summary>
<pattern>
<attrib>
<name>list_all</name>
<summary>List all available scanner parameters. Not only those visible to the client.</summary>
<type>boolean</type>
</attrib>
</pattern>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
<e>description</e>
<e>scanner_params</e>
</pattern>
<ele>
<name>description</name>
<pattern></pattern>
</ele>
<ele>
<name>scanner_params</name>
<pattern>
<any>
<e>scanner_param</e>
</any>
</pattern>
<ele>
<name>scanner_param</name>
<pattern>
<attrib>
<name>id</name>
<type>string</type>
</attrib>
<attrib>
<name>type</name>
<type>string</type>
</attrib>
<e>name</e>
<e>description</e>
<e>default</e>
<e>mandatory</e>
</pattern>
<ele>
<name>name</name>
</ele>
<ele>
<name>description</name>
</ele>
<ele>
<name>default</name>
</ele>
<ele>
<name>mandatory</name>
</ele>
</ele>
</ele>
</response>
<example>
<summary>Get scanner details</summary>
<request>
<get_scanner_details/>
</request>
<response>
<get_scanner_details_response status_text="OK" status="200">
<description>
...
</description>
<scanner_params>
<scanner_param id="profile" type="selection">
<name>Scan profile</name>
<description>Scan profiles are predefined set of plugins and customized configurations.</description>
<default>fast_scan|fast_scan|audit_high_risk|full_audit|OWASP_TOP10|bruteforce|empty_profile|web_infrastructure|full_audit_spider_man|sitemap</default>
</scanner_param>
<scanner_param id="http_request_status" type="boolean">
<name>Show HTTP request status</name>
<description>Whether to show the HTTP request's status in results</description>
<default>0</default>
</scanner_param>
<scanner_param id="dry_run" type="boolean">
<name>Dry Run</name>
<description>Whether to dry run scan.</description>
<default>0</default>
</scanner_param>
<scanner_param id="http_request_headers" type="boolean">
<name>Show HTTP request headers</name>
<description>Whether to show the HTTP request's headers in results</description>
<default>0</default>
</scanner_param>
<scanner_param id="http_response_status" type="boolean">
<name>Show HTTP response status</name>
<description>Whether to show the HTTP response's status in results</description>
<default>0</default>
</scanner_param>
<scanner_param id="seed_path" type="string">
<name>Seed path</name>
<description>Path to start with</description>
<default>/</default>
</scanner_param>
<scanner_param id="debug_mode" type="boolean">
<name>Debug Mode</name>
<description>Whether to get extra scan debug information.</description>
<default>0</default>
</scanner_param>
<scanner_param id="target_port" type="integer">
<name>Target port</name>
<description>Port on target host to scan</description>
<default>80</default>
</scanner_param>
<scanner_param id="use_https" type="boolean">
<name>Use HTTPS</name>
<description>Whether the target application is running over HTTPS</description>
<default>0</default>
</scanner_param>
</scanner_params>
</get_scanner_details_response>
</response>
</example>
</command>
<command>
<name>get_vts</name>
<summary>Return information about vulnerability tests, if offered by scanner</summary>
<pattern>
<attrib>
<name>vt_id</name>
<summary>Identifier for vulnerability test</summary>
<type>vt_id</type>
</attrib>
<attrib>
<name>filter</name>
<summary>Filter to get a sub group of a VT collection</summary>
<type>string</type>
</attrib>
<attrib>
<name>details</name>
<summary>Return more details about vulnerability tests, if offered by the scanner</summary>
<type>string</type>
</attrib>
<attrib>
<name>version_only</name>
<summary>Return only feed information</summary>
<type>boolean</type>
</attrib>
</pattern>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
<e>vts</e>
</pattern>
<ele>
<name>vts</name>
<pattern>
<attrib>
<name>vts_version</name>
<type>text</type>
</attrib>
<attrib>
<name>feed_vendor</name>
<type>text</type>
</attrib>
<attrib>
<name>feed_home</name>
<type>text</type>
</attrib>
<attrib>
<name>feed_name</name>
<type>text</type>
</attrib>
<attrib>
<name>total</name>
<type>integer</type>
</attrib>
<attrib>
<name>sha256_hash</name>
<type>text</type>
</attrib>
<any>
<e>vt</e>
</any>
</pattern>
<ele>
<name>vt</name>
<pattern>
<attrib>
<name>id</name>
<type>vt_id</type>
</attrib>
<e>name</e>
<e>creation_time</e>
<e>modification_time</e>
<e>params</e>
<e>refs</e>
<e>dependencies</e>
<e>summary</e>
<e>impact</e>
<e>affected</e>
<e>insight</e>
<e>solution</e>
<e>detection</e>
<e>severities</e>
<e>custom</e>
</pattern>
<ele>
<name>name</name>
</ele>
<ele>
<creation_time>creation_time</creation_time>
</ele>
<ele>
<modification_time>modification_time</modification_time>
</ele>
<ele>
<name>params</name>
<pattern>
<e>param</e>
</pattern>
<ele>
<name>param</name>
<pattern>
<attrib>
<name>type</name>
<type>string</type>
</attrib>
<attrib>
<name>id</name>
<type>string</type>
</attrib>
</pattern>
</ele>
</ele>
<ele>
<name>refs</name>
<pattern>
<e>ref</e>
</pattern>
<ele>
<name>ref</name>
<pattern>
<attrib>
<name>type</name>
<type>string</type>
</attrib>
<attrib>
<name>id</name>
<type>string</type>
</attrib>
</pattern>
</ele>
</ele>
<ele>
<name>dependencies</name>
<pattern>
<e>dependency</e>
</pattern>
<ele>
<name>dependency</name>
<pattern>
<attrib>
<name>vt_id</name>
<type>vt_id</type>
</attrib>
</pattern>
</ele>
</ele>
<ele>
<name>summary</name>
</ele>
<ele>
<name>impact</name>
</ele>
<ele>
<name>affected</name>
</ele>
<ele>
<name>insight</name>
</ele>
<ele>
<name>solution</name>
<pattern>
<attrib>
<name>type</name>
<summary>Solution type, for example "VendorFix"</summary>
<type>string</type>
</attrib>
<attrib>
<name>method</name>
<summary>Solution method, for example "DebianAPTUpgrade"</summary>
<type>string</type>
</attrib>
</pattern>
</ele>
<ele>
<name>detection</name>
</ele>
<ele>
<name>severities</name>
<pattern>
<any>
<e>severity</e>
</any>
</pattern>
<ele>
<name>severity</name>
<pattern>
<attrib>
<name>type</name>
<type>string</type>
</attrib>
<e>origin</e>
<e>date</e>
<e>value</e>
</pattern>
<ele>
<name>origin</name>
<summary>Optional reference to the origin of the severity</summary>
<type>string</type>
</ele>
<ele>
<name>date</name>
<summary>Optional timestamp in seconds since epoch. Defaults to VT creation date</summary>
<type>string</type>
</ele>
<ele>
<name>value</name>
<summary>The actual value, the format must correspond with the type</summary>
<type>string</type>
</ele>
</ele>
</ele>
<ele>
<name>custom</name>
</ele>
</ele>
</ele>
</response>
<example>
<summary>Get only feed information</summary>
<request>
<get_vts version_only='1'/>
</request>
<response>
<get_vts_response status="200" status_text="OK">
<vts vts_version="202112140941" feed_vendor="Greenbone AG" feed_home="https://www.greenbone.net/en/feed-comparison/" feed_name="Greenbone Security Feed" total="" sha256_hash="1762240dbd4ad0baf41ad9dcec58863922d63da35ceaa44488a55c3c23c4fcdb"/>
</get_vts_response>
</response>
</example>
<example>
<summary>Get information for all available vulnerability tests</summary>
<request>
<get_vts/>
</request>
<response>
<get_vts_response status_text="OK" status="200">
<vts total="10">
<vt id="1.2.3.4.5">
<name>Check for presence of vulnerability X</name>
</vt>
<vt id="ad45h67">
<name>Check for presence of vulnerability Y</name>
</vt>
</vts>
</get_vts_response>
</response>
</example>
<example>
<summary>Get information for a single vulnerability test</summary>
<request>
<get_vts vt_id='1.2.3.4.5'/>
</request>
<response>
<get_vts_response status_text="OK" status="200">
<vts total="10">
<vt id="1.2.3.4.5">
<name>Check for presence of vulnerability X</name>
<refs>
<ref id="2014-16494" type="fedora" />
<ref id="https://lists.fedoraproject.org/" type="url" />
<ref id="CVE-2014-9116" type="cve" />
</refs>
<dependencies>
<dependency vt_id="1.3.6.1.4.1.25623.1.0.50282" />
</dependencies>
<creation_time>1200603949</creation_time>
<modification_time>1567429142</modification_time>
<summary>Check the version of App</summary>
<affected>App in OS v2</affected>
<insight>App is a small but very powerful app.</insight>
<solution type="VendorFix">Please Install the Updated Packages.
</solution>
<detection qod_type="package">Get the installed version with the help of detect NVT and check if the version is vulnerable or not.</detection>
<severities>
<severity type="cvss_base_v2">
<origin>CVE-2014-9116</origin>
<date>1200603949</date>
<value>AV:N/AC:L/Au:N/C:N/I:N/A:P</value>
</severity>
</severities>
</vt>
</vts>
</get_vts_response>
</response>
</example>
<example>
<summary>Get information for a filtered collection of vulnerability test without details</summary>
<request>
<get_vts filter='modification_time>201903150834;modification_time<201903150835' details='0'/>
</request>
<response>
<get_vts_response status_text="OK" status="200">
<vts total="10" sent="1">
<vt id="1.2.3.4.5">
<name>Check for presence of vulnerability X</name>
<refs>
<ref id="2014-16494" type="fedora" />
<ref id="https://lists.fedoraproject.org/" type="url" />
<ref id="CVE-2014-9116" type="cve" />
</refs>
<creation_time>1200603949</creation_time>
<modification_time>1567429142</modification_time>
<summary>Check the version of App</summary>
<affected>App in OS v2</affected>
<insight>App is a small but very powerful app.</insight>
<solution type="VendorFix">Please Install the Updated Packages.
</solution>
<detection qod_type="package">Get the installed version with the help of detect NVT and check if the version is vulnerable or not.</detection>
<severities>
<severity type="cvss_base_v2">
<origin>CVE-2014-9116</origin>
<date>1200603949</date>
<value>AV:N/AC:L/Au:N/C:N/I:N/A:P</value>
</severity>
</severities>
</vt>
</vts>
</get_vts_response>
</response>
</example>
<example>
<summary>Get information for a vulnerability test with custom data</summary>
<request>
<get_vts vt_id='1.2.3.4.5'/>
</request>
<response>
<get_vts_response status_text="OK" status="200">
<vts total="10">
<vt id="1.2.3.4.5">
<name>Check for presence of vulnerability X</name>
<custom>
<my_element>First custom element</my_element>
<my_other_element>second custom element</my_other_element>
</custom>
</vt>
</vts>
</get_vts_response>
</response>
</example>
<example>
<summary>Get information for a vulnerability test with VT parameters data</summary>
<request>
<get_vts vt_id='1.2.3.4.5'/>
</request>
<response>
<get_vts_response status_text="OK" status="200">
<vts total="10">
<vt id="1.2.3.4.5">
<name>Check for presence of vulnerability X</name>
<params>
<param id="timeout" type="integer">
<name>Timeout</name>
<description>Vulnerability Test Timeout</description>
<default>300</default>
</param>
<param id="scan.udp" type="boolean">
<name>Scan UDP</name>
<description />
<default>1</default>
</param>
</params>
<refs>
<ref type="cve" id="CVE-2010-4480"/>
<ref type="url" id="http://www.exploit-db.com/exploits/15699/"/>
<ref type="url" id="http://www.vupen.com/english/advisories/2010/3133"/>
</refs>
<custom>
<my_element>First custom element</my_element>
<my_other_element>second custom element</my_other_element>
</custom>
</vt>
</vts>
</get_vts_response>
</response>
</example>
</command>
<command>
<name>start_scan</name>
<summary>Start a new scan</summary>
<pattern>
<attrib>
<name>target</name>
<summary>Target hosts to scan in a comma-separated list</summary>
<type>string</type>
</attrib>
<attrib>
<name>ports</name>
<summary>Ports list to scan as comma-separated list</summary>
<type>string</type>
</attrib>
<attrib>
<name>scan_id</name>
<summary>Optional UUID value to use as scan ID</summary>
<type>uuid</type>
</attrib>
<attrib>
<name>parallel</name>
<summary>Optional number of parallel scan to run </summary>
<type>integer</type>
</attrib>
<e>scanner_params</e>
<e>vt_selection</e>
<e>targets</e>
</pattern>
<ele>
<name>scanner_params</name>
<summary>Contains elements that represent scanner specific parameters</summary>
</ele>
<ele>
<name>vt_selection</name>
<summary>Contains elements that represent a Vulnerability Test or a collection of Vulnerability Tests to be executed and their parameters</summary>
</ele>
<ele>
<name>targets</name>
<summary>Contains a single element that represent a target to execute a scan against. If target and port attributes are present this element is not take into account</summary>
</ele>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
<e>id</e>
</pattern>
<ele>
<name>id</name>
<summary>New scan's UUID</summary>
</ele>
</response>
<example>
<summary>Start a new scan. Legacy mode</summary>
<request>
<start_scan target='localhost' ports='80, 443'>
<scanner_params>
<target_port>443</target_port>
<use_https>1</use_https>
<profile>fast_scan</profile>
</scanner_params>
</start_scan>
</request>
<response>
<start_scan_response status_text="OK" status="200">
<id>2f616d53-595f-4785-9b97-4395116ca118</id>
</start_scan_response>
</response>
</example>
<example>
<summary>Start a new scan with. Target element has port list and credentials for authenticated scans.</summary>
<request>
<start_scan parallel='10'>
<scanner_params>
...
</scanner_params>
<vt_selection>
....
</vt_selection>
<targets>
<target>
<hosts>192.168.1.0/24</hosts>
<ports>1,2,3,80,443</ports>
<credentials>
...
</credentials>
<exclude_hosts>192.168.1.10-15</exclude_hosts>
<finished_hosts>192.168.1.1-3</finished_hosts>
</target>
</targets>
</start_scan>
</request>
<response>
<start_scan_response status_text="OK" status="200">
<id>2f616d53-595f-4785-9b97-4395116ca118</id>
</start_scan_response>
</response>
</example>
</command>
<command>
<name>stop_scan</name>
<summary>Stop a currently running scan</summary>
<pattern>
<attrib>
<name>scan_id</name>
<summary>ID of scan to stop</summary>
<type>uuid</type>
</attrib>
</pattern>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
</pattern>
</response>
<example>
<summary>Stop a scan</summary>
<request>
<stop_scan scan_id='6ec1732c-10e8-448c-90fb-7797ad47ada2'>
</stop_scan>
</request>
<response>
<stop_scan_response status_text="OK" status="200">
</stop_scan_response>
</response>
</example>
</command>
<command>
<name>get_memory_usage</name>
<summary>Return memory usage information of the osp daemon</summary>
<pattern>
<attrib>
<name>unit</name>
<summary>Size unit for the memory. b for bytes, kb for kilobytes and mb for megabytes.</summary>
<type>text</type>
</attrib>
</pattern>
<response>
<pattern>
<attrib>
<name>status</name>
<type>status</type>
<required>1</required>
</attrib>
<attrib>
<name>status_text</name>
<type>text</type>
<required>1</required>
</attrib>
</pattern>
<ele>
<name>processes</name>
<summary>List of running processes</summary>
<ele>
<name>process</name>
<summary>Single running processes</summary>
<pattern>
<attrib>
<name>name</name>
<summary>Name of the process</summary>
<type>string</type>
</attrib>
<attrib>
<name>pid</name>
<summary>Process ID</summary>
<type>int</type>
</attrib>
</pattern>
<ele>
<name>rss</name>
<description>Resident Set Size. Non-swapped physical memory of the process</description>
<type>int</type>
</ele>
<ele>
<name>vms</name>
<description>Virtual Memory Size. Total amount of virtual memory used by the process.</description>
<type>int</type>
</ele>
<ele>
<name>shared</name>
<description>Memory shared with other processes</description>
<type>int</type>
</ele>
</ele>
</ele>
</response>
<example>
<request>
<get_memory_usage unit="kb"/>
</request>
<response>
<get_memory_usage status="200" status_text="OK">
<processes>
<process name="MainProcess" pid="12345">
<rss>127182</rss>
<vss>239616</vss>
<shared>135168</shared>
</process>
<process name="Process-1" pid="23456">
...
</process>
</processes>
</get_memory_usage>
</response>
</example>
</command>
<parameter_type>
<name>integer</name>
<summary>An integer value</summary>
</parameter_type>
<parameter_type>
<name>string</name>
<summary>A string</summary>
</parameter_type>
<parameter_type>
<name>boolean</name>
<summary>0 or 1</summary>
</parameter_type>
<parameter_type>
<name>selection</name>
<summary>A value out of the | separated values list</summary>
</parameter_type>
<parameter_type>
<name>credential_up</name>
<summary>The username:password of a credential</summary>
</parameter_type>
<parameter_type>
<name>file</name>
<summary>A file's content</summary>
</parameter_type>
<parameter_type>
<name>ovaldef_file</name>
<summary>An ovaldef file's content that is base64 encoded</summary>
</parameter_type>
<change>
<command>CHECK_FEED</command>
<summary>New command to perform a sync feed self test</summary>
<description>Perform a sync feed self test and check if the lockfile is locked
</description>
<version>22.04</version>
</change>
<change>
<command>GET_VTS</command>
<summary>Add feed information</summary>
<description>Include as arguments the feed's vendor, name and home.
</description>
<version>22.04</version>
</change>
<change>
<command>GET_VERSION</command>
<summary>Add feed information</summary>
<description>Include as arguments the feed's vendor, name and home.
</description>
<version>22.04</version>
</change>
<change>
<command>START_SCAN</command>
<summary>Add support for privileged access to target</summary>
<description>Credential Element got new Elements in case of SSH type. These new Elements allow an additional root access to the target system.
</description>
<version>22.04</version>
</change>
<change>
<command>START_SCAN</command>
<summary>Add support for dedicated port list for alive detection</summary>
<description>Target element received new target option alive_test_ports.
</description>
<version>21.04</version>
</change>
<change>
<command>START_SCAN</command>
<summary>Add support for supplying alive test methods via separate elements.</summary>
<description>Target element received new optional target option alive_test_methods with subelements imcp, tcp_ack, tcp_syn, arp and consider_alive.
</description>
<version>21.04</version>
</change>
<change>
<command>GET_VTS</command>
<summary>Returned object changes and extends severity information</summary>
<description>
The element SEVERITY inside SEVERITIES of the returned VT moves the origin and the value
into explicit elements ORIGIN and VALUE. Furthremore the element DATE is added.
</description>
<version>21.04</version>
</change>
<change>
<command>GET_VTS</command>
<summary>Returned object extended with solution method</summary>
<description>
The element SOLUTION of the returned VT object has a new optional attribute METHOD
that describes the solution method in case the VT offers such a detail.
</description>
<version>20.08</version>
</change>
<change>
<command>GET_VTS</command>
<summary>Returned object extended with amount of VTS</summary>
<description>
The main element vts has the new TOTAL attribute with the amount of vts in the collection and the new optional SENT attribute with the amount of vts which matched a given filter.
</description>
<version>20.08</version>
</change>
<change>
<command>GET_VTS</command>
<summary>Add attribute DETAILS</summary>
<description>
The new attribute DETAILS allows to get more details about a vulnerability test if the scanner support it. By default is set True, and for a lighter response must be explicitly set to False.
</description>
<version>20.08</version>
</change>
<change>
<command>GET_VTS</command>
<summary>Add attribute SHA256_HASH</summary>
<description>
The new attribute SHA256_HASH is calculated from the vulnerability test OID, modification time and VT preferences, sorted by OID. The new attribute is helpful for feed integrity check.
</description>
<version>20.08</version>
</change>
<change>
<command>GET_VTS</command>
<summary>Add attribute VTS_VERSION</summary>
<description>
The feed version is included in the get_vts command response.
</description>
<version>20.08</version>
</change>
<change>
<command>START_SCAN</command>
<summary>Add support for target options</summary>
<description>Target element receive new target options reverse_lookup_only, reverse_lookup_unify and alive_test.
</description>
<version>20.08</version>
</change>
<change>
<command>GET_SCANS</command>
<summary>Add scan progress details</summary>
<description>New attribute PROGRESS to specify whether to return a detailed progress information.
</description>
<version>20.08</version>
</change>
<change>
<command>GET_VTS</command>
<summary>command added</summary>
<description>
Added new command to retrieve information about vulnerability tests a scanner might offer.
</description>
<version>1.2</version>
</change>
<change>
<command>START_SCAN</command>
<summary>vts optional element added </summary>
<description>
Added optional element vts to allow the client to specify a vts list
to use for the scan and their parameters.
</description>
<version>1.2</version>
</change>
<change>
<command>START_SCAN</command>
<summary>target optional element added </summary>
<description>
Added optional element targets to specify different hosts with a different port list and credentials. This is take in account only if target and port attributes are not present in start_scan tag.
</description>
<version>1.2</version>
</change>
<change>
<command>START_SCAN</command>
<summary> parallel attribute added </summary>
<description>
Added optional attribute parallel to specify the number of simultaneous scans to be run.
</description>
<version>1.2</version>
</change>
<change>
<command>STOP_SCAN</command>
<summary>command added</summary>
<description>
Added new command to stop a currently running scan.
</description>
<version>1.1</version>
</change>
<change>
<command>START_SCAN</command>
<summary>scan_id attribute added</summary>
<description>
<p>
The scan_id attribute was added to allow the client to specify a UUID as
the ID of the scan.
</p>
</description>
<version>1.1</version>
</change>
<change>
<command>START_SCAN</command>
<summary>ports attribute added</summary>
<description>
The ports attribute was added to allow the client to specify a ports list
to use for the scan.
</description>
<version>1.1</version>
</change>
<change>
<command>GET_PERFORMANCE</command>
<summary>Command added</summary>
<description>
Added new command to get performance from an external program.
</description>
<version>1.2</version>
</change>
<change>
<command>START_SCAN</command>
<summary>Deprecation of targets and parallel</summary>
<description>
Possibility of running multi-targets was not implemented. Currently, only the first target element is used and the following are ignored as well as parallel attribute.
</description>
<version>1.3</version>
</change>
</protocol>
|