2. Security Profiles#
2.1. URL Filtering#
2.1.1. Webfilter urlfilter#
This section is for the webfilter.urlfilter object.
2.1.1.1. How to add a new entry in a webfilter.urlfilter.entries?#
Goal is to add a new entry without overwritting the existing ones.
The following example shows how to add a new entry www.url-001.com in the
webfilter.urlfilter with ID 1 in the demo ADOM:
{
"id": 3,
"method": "add",
"params": [
{
"data": {
"url": "www.url-001.com"
},
"url": "/pm/config/adom/demo/obj/webfilter/urlfilter/1/entries"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"data": {
"id": 1
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/urlfilter/1/entries"
}
]
}
Note
1 is the ID of the newly created URL entry.
2.1.1.2. How to add multiple entries in a webfilter.urlfilter.entries?#
Goal is to add multiple new entries without overwritting the existing ones.
The following example shows how to add multiple new entries (www.url-002.com
to www.url-004.com) in the webfilter.urlfilter with ID 1 in the demo ADOM:
{
"id": 3,
"method": "add",
"params": [
{
"data": [
{
"url": "www.url-002.com"
},
{
"url": "www.url-003.com"
},
{
"url": "www.url-004.com"
}
],
"url": "/pm/config/adom/demo/obj/webfilter/urlfilter/1/entries"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"status": {
"code": 0,
"message": "OK"
},
"url": "pm/config/adom/dc_amer/obj/webfilter/urlfilter/1/entries"
}
]
}
Note
In this case, no ID are returned.
2.1.1.3. How to replace the entire list of webfilter.urlfilter.entries?#
Sometimes, you receive a new list of URLs and don’t want to go through the
tedious process of comparing which ones are present or missing from your
existing webfilter.urlfilter.entries, then updating accordingly.
It is much simpler and faster to just ignore the existing webfilter.urlfilter.entries list and replace it with the new one.
The example below shows how to replace the contents of the
webfilter.urlfilter.entries sub-table of the URL Filter with ID 1 in the
demo ADOM:
{
"id": 3,
"method": "set",
"params": [
{
"data": {
"entries": [
{
"action": "block",
"url": "www.host-001.com"
},
{
"action": "block",
"url": "www.host-002.com"
},
{
"action": "block",
"url": "www.host-003.com"
},
{
"action": "block",
"url": "www.host-004.com"
},
{
"action": "block",
"url": "www.host-005.com"
},
{
"action": "block",
"url": "www.host-006.com"
}
]
},
"revision note": "URL List v20250607-002.",
"url": "pm/config/adom/demo/obj/webfilter/urlfilter/1"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"data": {
"id": 1
},
"status": {
"code": 0,
"message": "OK"
},
"url": "pm/config/adom/demo/obj/webfilter/urlfilter/1"
}
]
}
2.1.1.4. How to delete an entry in a webfilter.urlfilter.entries?#
Goal is to delete an existing entry without overwritting the existing ones.
To delete entry www.url-003.com with ID 4, in the
webfilter.urlfilter named urlfilter_001, with ID 1, in ADOM
dc_emea:
{
"id": 3,
"method": "delete",
"params": [
{
"url": "/pm/config/adom/dc_emea/obj/webfilter/urlfilter/1/entries/4"
}
],
"session": "{{session}}"
}
Note
The
webfilter.urlfilterurlfilter_001cannot be used as master key; its ID1has to be used insteadThe
webfilter.urlfilter.entrieswww.url-003.comcannot be used as a master key; its ID4has to be used instead.
{
"id": 3,
"result": [
{
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/dc_emea/obj/webfilter/urlfilter/1/entries/3"
}
]
}
2.1.2. Web rating overrides#
This section is for the webfilter.ftgd-local-rating objects.
2.1.2.1. How to add a new web rating override?#
To add a new web rating override in ADOM dc_amer:
{
"id": 3,
"method": "add",
"params": [
{
"data": {
"comment": "Test #003",
"rating": [
"96"
],
"status": "enable",
"url": "www.url-003.com"
},
"url": "/pm/config/adom/dc_amer/obj/webfilter/ftgd-local-rating"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"data": {
"url": "www.url-003.com"
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/dc_amer/obj/webfilter/ftgd-local-rating"
}
]
}
2.1.3. Webfilter profile#
This section is for operating the webfilter profile object.
2.1.3.1. How to add a new filter in a webfilter profile?#
filter wording is used because of the CLI syntax used to add a new category and its corresponding action. You have to update a table named filters as
shown below:
config webfilter profile
edit <wfp_name>
config ftgd-wf
config filters
edit <filter>
set category <id>
set action <action>
next
end
end
next
end
The following example shows how to add the wfp_001 webfilter profile in the
demo ADOM. It will block web traffic to URLs categorized as Web-based
Applications (i.e. category ID is 84):
{
"id": 3,
"method": "add",
"params": [
{
"data": {
"action": "block",
"category": 84
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
],
"session": "{{session}}"
}
Note
See section How to get the webfilter categories? for how to get the category ID used in the attribute
category
{
"id": 3,
"result": [
{
"data": {
"id": 26
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
]
}
Note
Response contains the
idof the created entry
Warning
You can’t use same
categoryvalue in a different filter entry
"""
Create a new ftgd-wf.filter in an existing webfilter profile
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
) as fmg:
ADOM = "demo"
MKEY = "wfp_001"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/profile/{MKEY}/ftgd-wf/filters"
data = {
"category": 84,
"action": "block"
}
fmg.debug = True
fmg.add(url, data=data)
fmg.debug = False
2.1.3.2. How to get existing filters in a webfilter profile?#
The following example shows how to get the configured filters for the wfp_001 in the demo ADOM:
{
"id": 3,
"method": "get",
"params": [
{
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"action": "monitor",
"category": [
"1"
],
"id": 1,
"log": "enable",
"oid": 6639
},
{
"action": "warning",
"category": [
"2"
],
"id": 2,
"log": "enable",
"oid": 6640,
"warn-duration": "5m",
"warning-prompt": "per-category"
},
{"...", "..."},
{
"action": "block",
"category": [
"99"
],
"id": 33,
"log": "enable",
"oid": 6671
},
{
"action": "block",
"category": [
"84"
],
"id": 34,
"log": "enable",
"oid": 6672
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
]
}
"""
Get configured filters in a webfilter profile
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
verbose=True,
) as fmg:
ADOM = "demo"
MKEY = "wfp_001"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/profile/{MKEY}/ftgd-wf/filters"
fmg.debug = True
fmg.get(url)
fmg.debug = False
In the above example, the information you’re getting from the existing filters isn’t very meaningful: action is quite explicit, but you don’t get the symbolic name associated with the returned category…
The following example shows how to obtain a more meaningful output by leveraging the expand datasrc mechaism:
{
"id": 3,
"method": "get",
"params": [
{
"expand datasrc": [
{
"datasrc": [
{
"obj type": "webfilter categories"
}
],
"name": "category"
}
],
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"action": "monitor",
"category": [
{
"id": "1",
"obj description": "Drug Abuse",
"obj type": "webfilter categories",
"oid": 0
}
],
"id": 1,
"log": "enable",
"oid": 6639
},
{
"action": "warning",
"category": [
{
"id": "2",
"obj description": "Alternative Beliefs",
"obj type": "webfilter categories",
"oid": 0
}
],
"id": 2,
"log": "enable",
"oid": 6640,
"warn-duration": "5m",
"warning-prompt": "per-category"
},
{"...", "..."},
{
"action": "block",
"category": [
{
"id": "84",
"obj description": "Web-based Applications",
"obj type": "webfilter categories",
"oid": 0
}
],
"id": 34,
"log": "enable",
"oid": 6672
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
]
}
"""
Get configured filters in a webfilter profile showing categories
symbolic names
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
verbose=True,
) as fmg:
ADOM = "demo"
MKEY = "wfp_001"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/profile/{MKEY}/ftgd-wf/filters"
params = [
{
"expand datasrc": [
{
"datasrc": [
{
"obj type": "webfilter categories",
},
],
"name": "category",
}
],
"url": url,
}
]
fmg.debug = True
fmg.free_form(
"get",
data=params,
)
fmg.debug = False
2.1.3.3. How to update an existing filter in a webfilter profile?#
Goal is to change the action attribute value of an webfilter profile filter.
The following example shows how to update the action, for the Potentially
Unwanted Program category, from block to warning in the wfp_001
webfilter profile of the demo ADOM:
Current action is block:
{
"id": 3,
"method": "get",
"params": [
{
"expand datasrc": [
{
"datasrc": [
{
"obj type": "webfilter categories"
}
],
"name": "category"
}
],
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters/33"
}
],
"session": "{{session}}",
"verbose": 1
}
Note
How do you know that you have to use the
33ID for the filter entry? See ref:How to get existing filters in a webfilter profile?
{
"id": 3,
"result": [
{
"data": {
"action": "block",
"category": [
{
"id": "99",
"obj description": "Potentially Unwanted Program",
"obj type": "webfilter categories",
"oid": 0
}
],
"id": 33,
"log": "enable",
"oid": 6671
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters/33"
}
]
}
"""
Get a specific filter entry in a webfilter profile
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
verbose=True,
) as fmg:
ADOM = "demo"
MKEY = "wfp_001"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/profile/{MKEY}/ftgd-wf/filters/33"
params = [
{
"expand datasrc": [
{
"datasrc": [
{
"obj type": "webfilter categories",
}
],
"name": "category",
}
],
"url": url,
}
]
fmg.debug = True
fmg.free_form(
"get",
data=params,
)
fmg.debug = False
Change it to warning:
{
"id": 3,
"method": "set",
"params": [
{
"data": {
"action": "warning"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters/33"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"data": {
"id": 33
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters/33"
}
]
}
"""
Update an existing filter in a webfilter profile
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
verbose=True,
) as fmg:
ADOM = "demo"
MKEY = "wfp_001"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/profile/{MKEY}/ftgd-wf/filters/33"
fmg.debug = True
fmg.set(
url,
action="warning"
)
fmg.debug = False
After the change, action is warning:
{
"id": 3,
"method": "get",
"params": [
{
"expand datasrc": [
{
"datasrc": [
{
"obj type": "webfilter categories"
}
],
"name": "category"
}
],
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters/33"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": {
"action": "warning",
"category": [
{
"id": "99",
"obj description": "Potentially Unwanted Program",
"obj type": "webfilter categories",
"oid": 0
}
],
"id": 33,
"log": "enable",
"oid": 6671,
"warn-duration": "5m",
"warning-prompt": "per-category"
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters/33"
}
]
}
2.1.3.4. How to update multiple filters in a webfilter profile?#
Goal is to change the action attribute values of multiple webfilter profile filters.
The following example shows how to set the action, for the Potentially
Unwanted Program and Web-based Applications categories, to monitor in the wfp_001 webfilter profile of the demo ADOM:
Current action are warning and block respectively:
{
"id": 3,
"method": "get",
"params": [
{
"expand datasrc": [
{
"datasrc": [
{
"obj type": "webfilter categories"
}
],
"name": "category"
}
],
"filter": [
"id",
"in",
33,
34
],
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"action": "warning",
"category": [
{
"id": "99",
"obj description": "Potentially Unwanted Program",
"obj type": "webfilter categories",
"oid": 0
}
],
"id": 33,
"log": "enable",
"oid": 6671,
"warn-duration": "5m",
"warning-prompt": "per-category"
},
{
"action": "block",
"category": [
{
"id": "84",
"obj description": "Web-based Applications",
"obj type": "webfilter categories",
"oid": 0
}
],
"id": 34,
"log": "enable",
"oid": 6672
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
]
}
"""
Get configured filters in a webfilter profile
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
verbose=True,
) as fmg:
ADOM = "demo"
MKEY = "wfp_001"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/profile/{MKEY}/ftgd-wf/filters"
params = [
{
"expand datasrc": [
{
"datasrc": [
{
"obj type": "webfilter categories",
},
],
"name": "category",
}
],
"url": url,
"filter": [
"id",
"in",
33,
34,
]
}
]
fmg.debug = True
fmg.free_form(
"get",
data=params,
)
fmg.debug = False
Change them to warning:
{
"id": 3,
"method": "set",
"params": [
{
"data": [
{
"action": "monitor",
"id": 33
},
{
"action": "monitor",
"id": 34
}
],
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
]
}
"""
Update configured filters in a webfilter profile
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
verbose=True,
) as fmg:
ADOM = "demo"
MKEY = "wfp_001"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/profile/{MKEY}/ftgd-wf/filters"
data = [
{
"id": 33,
"action": "monitor",
},
{
"id": 34,
"action": "monitor",
},
]
fmg.debug = True
fmg.set(
url,
data=data
)
fmg.debug = False
After the change, action is monitor for both filter entries:
{
"id": 3,
"method": "get",
"params": [
{
"expand datasrc": [
{
"datasrc": [
{
"obj type": "webfilter categories"
}
],
"name": "category"
}
],
"filter": [
"id",
"in",
33,
34
],
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"action": "monitor",
"category": [
{
"id": "99",
"obj description": "Potentially Unwanted Program",
"obj type": "webfilter categories",
"oid": 0
}
],
"id": 33,
"log": "enable",
"oid": 6671
},
{
"action": "monitor",
"category": [
{
"id": "84",
"obj description": "Web-based Applications",
"obj type": "webfilter categories",
"oid": 0
}
],
"id": 34,
"log": "enable",
"oid": 6672
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile/wfp_001/ftgd-wf/filters"
}
]
}
2.1.3.5. How to get the webfilter categories?#
Caught in #0227646.
It is about describing how to obtain a category ID along with its corresponding symbolic name.
The following example shows how to get the categories ID along with their symbolic names, by combining the datasrc option with the attr attribute:
{
"id": 3,
"method": "get",
"params": [
{
"attr": "rating",
"option": "datasrc",
"url": "/pm/config/adom/demo/obj/webfilter/ftgd-local-rating"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"data": {
"webfilter categories": [
{
"id": "all",
"obj description": "All Categories"
},
{
"id": "g01",
"obj description": "Potentially Liable"
},
{
"id": "1",
"obj description": "Drug Abuse"
},
{"...", "..."},
},
{
"id": "0",
"obj description": "Unrated"
},
{
"id": "g22",
"obj description": "Local Categories"
}
],
"webfilter ftgd-local-cat": [
{
"desc": "custom1",
"id": 140,
"status": 1
},
{
"desc": "custom2",
"id": 141,
"status": 1
}
]
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/root/obj/webfilter/ftgd-local-rating"
}
]
}
"""
Get categories ID along with their symbolic names.
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
verbose=True,
) as fmg:
ADOM = "demo"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/ftgd-local-rating"
params = [
{
"attr": "rating",
"option": "datasrc",
"url": url,
}
]
fmg.debug = True
fmg.free_form(
"get",
data=params,
)
fmg.debug = False
You could leverage the datasrc option and the attr attribute for all url leading to a configuration element referencing a category ID.
The following example will produce a similar output but with a different url and attr values:
{
"id": 3,
"method": "get",
"params": [
{
"attr": "ftgd-wf/filters/category",
"option": "datasrc",
"url": "/pm/config/adom/demo/obj/webfilter/profile"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": {
"webfilter categories": [
{
"id": "all",
"obj description": "All Categories",
"oid": 0
},
{
"id": "g01",
"obj description": "Potentially Liable",
"oid": 0
},
{
"id": "1",
"obj description": "Drug Abuse",
"oid": 0
},
{"...", "..."},
{
"id": "0",
"obj description": "Unrated",
"oid": 0
},
{
"id": "g22",
"obj description": "Local Categories",
"oid": 0
}
],
"webfilter ftgd-local-cat": [
{
"desc": "custom1",
"id": 140,
"oid": 3716,
"status": "enable"
},
{
"desc": "custom2",
"id": 141,
"oid": 3717,
"status": "enable"
}
]
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/webfilter/profile"
}
]
}
"""
Get categories ID along with their symbolic names.
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
verbose=True,
) as fmg:
ADOM = "demo"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/profile"
params = [
{
"attr": "ftgd-wf/filters/category",
"option": "datasrc",
"url": url,
}
]
fmg.debug = True
fmg.free_form(
"get",
data=params,
)
fmg.debug = False
There is a second alternative which consists in using the get reserved option as shown below:
{
"id": 3,
"method": "get",
"params": [
{
"option": "get reserved",
"url": "/pm/config/adom/demo/obj/webfilter/categories"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"data": [
{
"id": "all",
"obj description": "All Categories"
},
{
"id": "g01",
"obj description": "Potentially Liable"
},
{
"id": "1",
"obj description": "Drug Abuse"
},
{"...": "..."},
{
"id": "g21",
"obj description": "Unrated"
},
{
"id": "0",
"obj description": "Unrated"
},
{
"id": "g22",
"obj description": "Local Categories"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/root/obj/webfilter/categories"
}
]
}
"""
Get categories ID along with their symbolic names.
"""
from pyFMG.fortimgr import FortiManager
IP = "10.210.34.120"
USERNAME = "devops"
PASSWORD = "fortinet"
with FortiManager(
IP,
USERNAME,
PASSWORD,
disable_request_warnings=True,
verbose=True,
) as fmg:
ADOM = "demo"
url = f"/pm/config/adom/{ADOM}/obj/webfilter/categories"
fmg.debug = True
fmg.get(
url,
option="get reserved"
)
fmg.debug = False
2.2. DNS Filtering#
The dnsfilter.domain-filter used by the dnsfilter.profile is the
counterpart of the webfilter.urlfilter used by the webfilter.profile.
2.2.1. How to empty the dnsfilter.domain-filter.entries table?#
You can use the JSON RPC method update or set as shown below:
{
"id": 3,
"method": "update",
"params": [
{
"data": {
"entries": []
},
"url": "/pm/config/adom/dc_amer/obj/dnsfilter/domain-filter/2"
}
],
"session": "{{ session }}"
}
{
"id": 3,
"result": [
{
"data": {
"id": 2
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/dc_amer/obj/dnsfilter/domain-filter/2"
}
]
}
2.3. Application Control Management#
2.3.1. How to get the list of all applications?#
We can use any of those URL
pm/config/global/_application/list
pm/config/global/obj/_application/list
pm/config/adom/<adom>/_application/list
pm/config/adom/<adom>/obj/_application/list
pm/config/device/<device>/global/_application/list
pm/config/device/<device>/_application/list
pm/config/device/<device>/vdom/<vdom>/_application/list
For instance:
{
"id": 1,
"jsonrpc": "1.0",
"method": "get",
"params": [
{
"url": "/pm/config/adom/CM-LAB-001/_application/list"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 1,
"result": [
{
"data": [
{
"behavior": "",
"cat-id": "21",
"category": "Email",
"id": "16554",
"language": "Chinese",
"name": "126.Mail",
"parameter": "",
"popularity": "4.low",
"protocol": "1.TCP, 9.HTTP, 26.SSL",
"require_ssl_di": "No",
"risk": "3.low",
"shaping": "0",
"sub-cat-id": "0",
"sub-category": "(null)",
"technology": "1.Browser-Based",
"vendor": "9.Netease",
"weight": "10"
},
[...]
2.3.2. How to get the list of Application Categories?#
Caught in #0278734.
We can use either of those URLs:
pm/config/adom/<adom>/_category/listpm/config/adom/<adom>/obj/_category/list
To get some output, the ADOM has to contains a real device.
If your ADOM doesn’t have yet any real devices or only has Model Devices, the output will be null.
{
"id": 1,
"method": "get",
"params": [
{
"url": "pm/config/adom/ADOM_54_001/obj/_category/list"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 1,
"result": [
{
"data": [
{
"id": 19,
"name": "\"Botnet\""
},
{
"id": 29,
"name": "\"Business\""
},
{
"id": 30,
"name": "\"Cloud.IT\""
},
{
"id": 5,
"name": "\"Video/Audio\""
},
{
"id": 3,
"name": "\"VoIP\""
},
{
"id": 25,
"name": "\"Web.Client\""
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "pm/config/adom/ADOM_54_001/_category/list"
}
]
}
Please also consider the new information from #0370036.
1) JSON API changes:
a) The following 3 JSON API:
firewall/service/predefined (this one should be deleted)
ips/sensor/entries/protocol
ips/sensor/entries/application
Will merge into one:
_data/reserved/<mapping_name>
b) New category: application/categories,
also "webfilter/categories", etc...
can be get by the new JSON API:
_data/reserved/application/categories
_data/reserved/webfilter/categories
c) The old JSON API:
_category/list
will be kept which will return the DB calculated category list.
2.3.3. How to create a new Custom Application Signature?#
To add a new APP_SIG_002 Custom Application Signature in dc_africa ADOM:
{
"id": 3,
"method": "set",
"params": [
{
"data": {
"comment": null,
"signature": "F-SBID (--app_cat 36; --name \"Front.FP30reg.Chunked.Overflow TEst\"; --protocol tcp; --service HTTP; --flow from_client; --parsed_type HTTP_POST; --pattern \"/vti_bin/_vti_aut/fp30reg.dll\"; --context uri; --no_case; --parsed_type HTTP_CHUNKED; )",
"tag": "APP_SIG_002"
},
"url": "pm/config/adom/dc_africa/obj/application/custom"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"data": {
"tag": "APP_SIG_002"
},
"status": {
"code": 0,
"message": "OK"
},
"url": "pm/config/adom/dc_africa/obj/application/custom"
}
]
}
2.4. DLP Profile Management#
2.4.1. How to add a new DLP File Pattern?#
Caught in #594984.
{
"id": 1,
"method": "add",
"params": [
{
"url": "pm/config/adom/root/obj/dlp/filepattern",
"data": {
"name": "test",
"id": 0,
"entries": [
{
"file-type": 64,
"filter-type": 1,
"pattern": "Test"
}
]
}
}
],
"session": "{{session}}"
}
{
"id": 1,
"result": [
{
"data": {
"id": 3
},
"status": {
"code": 0,
"message": "OK"
},
"url": "pm/config/adom/root/obj/dlp/filepattern"
}
]
}
2.4.2. How to get DLP elements from FortiGuard DB?#
Caught in #0966060.
2.4.2.1. How to get DLP sensors from FortiGuard DB?#
{
"id": 3,
"method": "get",
"params": [
{
"url": "pm/config/adom/root/_fdsdb/dlp/sensor"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"comment": "Canadian Health Information Act (HIA) Sensor",
"entries": "[ { \"dictionary\": \"can-pass-dict\", \"count\": 5 }, { \"dictionary\": \"can-natl_id-sin-dict\", \"count\": 5 }, { \"dictionary\": \"can-phin-dict\", \"count\": 5 }, { \"dictionary\": \"can-health_service-dict\", \"count\": 5 } ]",
"eval": "",
"match-type": "any",
"name": "can-hia"
},
{
"comment": "Canadian Personal Identifiable Information (PII) Sensor",
"entries": "[ { \"dictionary\": \"can-dl-dict\", \"count\": 5 }, { \"dictionary\": \"can-natl_id-sin-dict\", \"count\": 5 }, { \"dictionary\": \"can-pass-dict\", \"count\": 5 }, { \"dictionary\": \"can-health_service-dict\", \"count\": 5 }, { \"dictionary\": \"can-bank_account-dict\", \"count\": 5 }, { \"dictionary\": \"can-phin-dict\", \"count\": 5 } ]",
"eval": "",
"match-type": "any",
"name": "can-pii"
},
{
"comment": "Source Code Sensor",
"entries": "[ { \"dictionary\": \"source_code-python\", \"count\": 5 }, { \"dictionary\": \"source_code-c\", \"count\": 5 }, { \"dictionary\": \"source_code-java\", \"count\": 5 } ]",
"eval": "",
"match-type": "any",
"name": "source_code"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "pm/config/adom/root/_fdsdb/dlp/sensor",
"version": "1.41"
}
]
}
2.4.2.2. How to get DLP dictionnaries from FortiGuard DB?#
{
"id": 3,
"method": "get",
"params": [
{
"url": "pm/config/adom/root/_fdsdb/dlp/dictionary"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"comment": "EICAR Test File for DLP",
"entries": "[ { \"type\": \"keyword\", \"pattern\": \"X5O!P%@AP[4\\\\PZX54(P^)7CC)7}$EICAR-STANDARD-DLP-TEST-FILE!$H+H*\", \"ignore-case\": 0, \"repeat\": 1 } ]",
"match-type": "any",
"name": "EICAR-TEST-FILE"
},
{
"comment": "",
"entries": "[ { \"type\": \"regex\", \"pattern\": \"Social Insurance (Number|Card)\", \"ignore-case\": 1, \"repeat\": 0 }, { \"type\": \"keyword\", \"pattern\": \"sin\", \"ignore-case\": 1, \"repeat\": 0 }, { \"type\": \"keyword\", \"pattern\": \"sic\", \"ignore-case\": 1, \"repeat\": 0 }, { \"type\": \"keyword\", \"pattern\": \"sin#\", \"ignore-case\": 1, \"repeat\": 0 }, { \"type\": \"keyword\", \"pattern\": \"social insurance\", \"ignore-case\": 1, \"repeat\": 0 } ]",
"match-type": "any",
"name": "can-natl_id-pk"
},
{
"comment": "Canadian SIN Card Number Dictionary",
"entries": "[ { \"type\": \"can-natl_id-sin\", \"pattern\": \"\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"can-natl_id-prox\", \"pattern\": \"\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"luhn-algo\", \"pattern\": \"\\\\b\\\\d{3}[- ]?\\\\d{3}[- ]?\\\\d{3}\\\\b\", \"ignore-case\": 0, \"repeat\": 1 } ]",
"match-type": "all",
"name": "can-natl_id-sin-dict"
},
{"...": "..."},
{
"comment": "Python Source Code Dictionary",
"entries": "[ { \"type\": \"keyword\", \"pattern\": \"@staticmethod\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^from\\\\s(\\\\w.+)\\\\simport\\\\s\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"lambda\\\\s(.+):\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \":\\\\s*(continue|yield|await)\\\\s\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*class\\\\s(\\\\w+?):$\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*(try|finally)\\\\s*:$\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*except\\\\s*(Exception|\\\\w+Error\\\\sas\\\\s\\\\w+)\\\\s*:$\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^import\\\\s[\\\\w,]+$\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^if\\\\s__name__\\\\s*==\\\\s*[\\\"']__main__[\\\"']\\\\s*:$\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*(async\\\\s)?def\\\\s*(\\\\w+?)\\\\(([\\\\w,*\\\\s=\\\"']*?)\\\\):$\\/m\", \"ignore-case\": 0, \"repeat\": 1 } ]",
"match-type": "any",
"name": "source_code-python"
},
{
"comment": "C Source Code Dictionary",
"entries": "[ { \"type\": \"regex\", \"pattern\": \"^\\\\s*(int|void|double|float|char)\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"^\\\\s*(class|struct|interface)\\\\s\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*using\\\\s+(namespace|\\\\w+)\\\\s*(=|::)?\\\\s*[\\\\w*:<>]+;\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*typedef\\\\s+((int|void|float|double|char|short|long)\\\\*{0,2}|(struct|enum|union)\\\\s+)\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*#include\\\\s*[<\\\"][^>\\\"]+[>\\\"]\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*(public|private|protected)\\\\:\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*namespace\\\\s+(.+?)\\\\s*\\\\{\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*#define\\\\s\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*int\\\\s+main\\\\s*\\\\(\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*switch\\\\b\\\\s*\\\\([^)]*\\\\)\\\\s*\\\\{\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*#ifndef\\\\s\\/m\", \"ignore-case\": 0, \"repeat\": 1 } ]",
"match-type": "any",
"name": "source_code-c"
},
{
"comment": "Java Source Code Dictionary",
"entries": "[ { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*@(Override|Deprecated|SuppressWarnings|FunctionalInterface|Entity|RequestMapping|Autowired|)\\\\s*$\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*(public\\\\s|private\\\\s|protected\\\\s)?(static\\\\s)?(final\\\\s)?(int(\\\\[\\\\])*|String(\\\\[\\\\])*|Runnable|double|float|long|char|boolean|byte|short)\\\\s(.+?);$\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*(public\\\\s+|private\\\\s+|protected\\\\s+)?((abstract\\\\s+|final\\\\s+|static\\\\s+)?class|(abstract\\\\s+|static\\\\s+)?void|enum|interface)\\\\s+(.+?){\\/m\", \"ignore-case\": 0, \"repeat\": 1 }, { \"type\": \"regex\", \"pattern\": \"\\/^\\\\s*(import|package)\\\\s(static\\\\s)?(javax?|com|org)\\\\..*?;\\/m\", \"ignore-case\": 0, \"repeat\": 1 } ]",
"match-type": "any",
"name": "source_code-java"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "pm/config/adom/root/_fdsdb/dlp/dictionary",
"version": "1.41"
}
]
}
2.4.2.3. How to get DLP data-type from FortiGuard DB?#
{
"id": 3,
"method": "get",
"params": [
{
"url": "pm/config/adom/root/_fdsdb/dlp/data-type"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"comment": "",
"look-ahead": 0,
"look-back": 0,
"match-ahead": 0,
"match-around": "",
"match-back": 0,
"name": "uk-iban",
"pattern": "\\bGB\\d{2}[A-Z]{4}\\d{6}\\d{8}\\b",
"verify": ""
},
{
"comment": "",
"look-ahead": 1,
"look-back": 12,
"match-ahead": 0,
"match-around": "",
"match-back": 0,
"name": "can-natl_id-sin",
"pattern": "\\b\\d{3}[- ]?\\d{3}[- ]?\\d{3}\\b",
"verify": "\\b(?!0\\d{2}|8\\d{2})\\d{3}([ -]?)?\\d{3}\\1\\d{3}\\b"
},
{
"comment": "",
"look-ahead": 0,
"look-back": 20,
"match-ahead": 0,
"match-around": "",
"match-back": 0,
"name": "luhn-algo",
"pattern": "",
"verify": "builtin)luhn"
},
{"...": "..."},
{
"comment": "France SWIFT Code",
"look-ahead": 100,
"look-back": 100,
"match-ahead": 100,
"match-around": "glb-swift-pk",
"match-back": 100,
"name": "fra-swift",
"pattern": "\\b[A-Z]{4}FR[A-Z0-9]{2}(?:[A-Z0-9]{3})?\\b",
"verify": ""
},
{
"comment": "Australia SWIFT Code",
"look-ahead": 100,
"look-back": 100,
"match-ahead": 100,
"match-around": "glb-swift-pk",
"match-back": 100,
"name": "aus-swift",
"pattern": "\\b[A-Z]{4}AU[A-Z0-9]{2}(?:[A-Z0-9]{3})?\\b",
"verify": ""
},
{
"comment": "China SWIFT Code",
"look-ahead": 100,
"look-back": 100,
"match-ahead": 100,
"match-around": "glb-swift-pk",
"match-back": 100,
"name": "chn-swift",
"pattern": "\\b[A-Z]{4}CN[A-Z0-9]{2}(?:[A-Z0-9]{3})?\\b",
"verify": ""
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "pm/config/adom/root/_fdsdb/dlp/data-type",
"version": "1.41"
}
]
}
2.5. IPS Sensors Management#
2.5.1. How to add an IPS rule in an IPS sensor?#
The following example shows how to add a new IPS rule in the ips_sensor_001
IPS sensor in the demo ADOM:
{
"id": 3,
"method": "add",
"params": [
{
"data": {
"action": "default",
"application": [
"all"
],
"cve": [],
"default-action": "all",
"default-status": "all",
"exempt-ip": null,
"last-modified": [],
"location": [
"all"
],
"log": "disable",
"log-attack-context": "disable",
"log-packet": "disable",
"os": [
"all"
],
"protocol": [
"all"
],
"quarantine": "none",
"rule": [],
"severity": [
"info"
],
"status": "default",
"vuln-type": []
},
"url": "/pm/config/adom/demo/obj/ips/sensor/ips_sensor_001/entries"
}
],
"session": "{{session}}"
}
Note
Using the
addpreserves the existing items in theentriessub-tableNew item is added at the end of the list of existing items
{
"id": 3,
"result": [
{
"data": {
"id": 3
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/ips/sensor/ips_sensor_001/entries"
}
]
}
2.5.2. How to insert an IPS rule in an IPS sensor?#
The following example shows how to insert a new IPS rule in the
ips_sensor_001 IPS sensor in the demo ADOM.
This new IPS rule will be inserted after the IPS rule with ID 1:
{
"id": 3,
"method": "add",
"params": [
{
"data": {
"action": "default",
"application": [
"all"
],
"cve": [],
"default-action": "all",
"default-status": "all",
"exempt-ip": null,
"last-modified": [],
"location": [
"all"
],
"log": "enable",
"log-attack-context": "enable",
"log-packet": "enable",
"object position": [
"after",
"1"
],
"os": [
"all"
],
"protocol": [
"HTTP",
"FTP"
],
"quarantine": "none",
"rule": [],
"severity": [
"high"
],
"status": "default",
"vuln-type": []
},
"url": "/pm/config/adom/demo/obj/ips/sensor/ips_sensor_001/entries"
}
],
"session": "{{session}}"
}
Note
object positionmechanism seen in How to insert a policy? is used to insert the new IPS rule
{
"id": 3,
"result": [
{
"data": {
"id": 6
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/ips/sensor/ips_sensor_001/entries"
}
]
}
2.5.3. How to delete an IPS rule from an IPS sensor?#
The following example shows how to delete the IPS rule with ID 5 from the
ips_sensor_001 in the demo ADOM:
{
"id": 3,
"method": "delete",
"params": [
{
"url": "/pm/config/adom/demo/obj/ips/sensor/ips_sensor_001/entries/5"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/ips/sensor/ips_sensor_001/entries/5"
}
]
}
2.5.4. How to get list of IPS signatures?#
The following example shows how to get the list of IPS signatures available in
the demo ADOM:
{
"id": 3,
"method": "get",
"params": [
{
"url": "/pm/config/adom/demo/_rule/list"
}
],
"session": "{{session}}"
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"action": "block",
"application": "SCADA",
"cve": "",
"cve_lf": "",
"database": 4,
"date": "20220502",
"group": "SCADA",
"location": "server,client",
"log": "",
"log-packet": "",
"name": "10-Strike.LANState.Local.Buffer.Overflow.Exploit",
"objver": "13.518",
"os": "Windows",
"rate-count": "",
"rate-duration": "",
"rate-mode": "",
"rate-track": "",
"rev": "13518",
"rule-id": 47306,
"service": "TCP,HTTP,FTP,SMTP,POP3,IMAP,NNTP",
"severity": "medium",
"status": "enable",
"vuln_type": "Buffer Errors"
},
{
"...": "..."
},
{
"action": "block",
"application": "Other",
"cve": "202237434",
"cve_lf": "",
"database": 11,
"date": "20221104",
"group": "applications3",
"location": "server,client",
"log": "",
"log-packet": "",
"name": "zlib.Library.inflateGetHeader.Handling.Buffer.Overflow",
"objver": "22.423",
"os": "Windows,Linux,MacOS",
"rate-count": "",
"rate-duration": "",
"rate-mode": "",
"rate-track": "",
"rev": "22423",
"rule-id": 52146,
"service": "TCP,HTTP,FTP,SMTP,POP3,IMAP,NNTP",
"severity": "high",
"status": "enable",
"vuln_type": "Buffer Errors"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/_rule/list",
"version": "26.740"
}
]
}
Note
The obtained signatures are from the IPS package version indicated in the output of this command:
diagnose dvm adom list demo
You should get an output similar to the following one:
OID STATE PRODUCT OSVER MR LIC NAME MODE VPN MANAGEMENT IPS ISDB 3 enabled FOS 7.0 4 demo Normal Policy & Device VPNs 26.740 7.3585 ---End ADOM list---
In this above output, the IPS package version is given by the
IPScolumn:26.740
2.5.5. How to get list of IPS protocols?#
The following example shows how to get the list of IPS protocols using the
demo ADOM:
{
"id": 3,
"method": "get",
"params": [
{
"url": "/pm/config/adom/demo/_data/reserved/ips/sensor/entries/protocol"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"_flags": "+H",
"name": "BO"
},
{
"_flags": "+H",
"name": "DCERPC"
},
{
"_flags": "+H",
"name": "DHCP"
},
{
"...": "..."
},
{
"_flags": "+H",
"name": "TELNET"
},
{
"_flags": "+H",
"name": "TFN"
},
{
"_flags": "+H",
"name": "UDP"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/_data/reserved/ips/sensor/entries/protocol"
}
]
}
2.5.6. How to get list of IPS applications?#
The following example shows how to get the list of IPS applications using the
demo ADOM:
{
"id": 3,
"method": "get",
"params": [
{
"url": "/pm/config/adom/demo/_data/reserved/ips/sensor/entries/application"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"_flags": "+H",
"name": "ASP_app"
},
{
"_flags": "+H",
"name": "Adobe"
},
{
"_flags": "+H",
"name": "Apache"
},
{
"...": "..."
},
{
"_flags": "+H",
"name": "Sun"
},
{
"_flags": "+H",
"name": "Veritas"
},
{
"_flags": "+H",
"name": "Winamp"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/_data/reserved/ips/sensor/entries/application"
}
]
}
2.5.7. How to get IPS Profile Usage?#
Caught in #0955276.
IPS Profile Usage is a tool that lets the FortiManager administror knows about global IPS sensor usage.
You trigger it using the More > IPS Profile Usages from the Intrusion Prevention page:
For each managed device using IPS sensors, You can review the Installed Timestamp, the Modified Timestamp and most importantly the IPS sensor Status (whether it is in sync with the one used by the managed device):
In the above example, the default IPS sensor was installed on the two
site_1 and site_2 managed devices at the indicated Installed
Timestamp.
The example is also confirming that for the moment, the default IPS sensor
is still in sync with the one currently enforced by the two managed devices
since the Status is green for them.
You can trigger the IPS Profile Usages operation using the FortiManager JSON RPC API as shown below:
{
"id": 3,
"method": "get",
"params": [
{
"url": "/pm/config/adom/production/_objstatus/ips/sensor"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"device": "site_1",
"objects": [
{
"category": 288,
"copied_timestamp": 1699030383,
"latest_timestamp": 1699030383,
"name": "default",
"status": 0
}
],
"vdom": "root"
},
{
"device": "site_2",
"objects": [
{
"category": 288,
"copied_timestamp": 1699030383,
"latest_timestamp": 1699030383,
"name": "default",
"status": 0
}
],
"vdom": "root"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/production/_objstatus/ips/sensor"
}
]
}
Note
Value
0for thestatusattribute correspond to the green status
2.5.8. Global IPS sensor#
The Global IPS Sensor allows you to create baseline IPS sensors composed of header and footer IPS rules.
In the FortiManager GUI, you can find it under Policy & Objects > Header/Footer IPS.
Note
The Global IPS sensor defining header/footer IPS rules has nothing to do with the normal Global IPS sensor that you can find under Policy & Objects > Security Profile > Intrusion Prevention
2.5.8.1. How to create a Global IPS sensor#
The following example shows how to add the g_ips_sensor_001 Global IPS sensor made of one header and one footer rules in the Global ADOM:
{
"id": 3,
"method": "add",
"params": [
{
"data": {
"block-malicious-url": 0,
"entries": [
{
"action": 5,
"application": ["all"],
"default-action": 34,
"default-status": 34,
"exempt-ip": [],
"last-modified": null,
"location": ["all"],
"log": true,
"log-attack-context": 0,
"log-packet": 0,
"os": ["all"],
"position": "header",
"protocol": ["all"],
"quarantine": 0,
"quarantine-expiry": "5m",
"quarantine-log": 1,
"rate-count": 0,
"rate-duration": 60,
"rate-mode": 9,
"rate-track": 0,
"severity": ["all"],
"status": 3
},
{
"action": 5,
"application": ["all"],
"default-action": 34,
"default-status": 34,
"exempt-ip": [],
"last-modified": null,
"location": ["all"],
"log": true,
"log-attack-context": 0,
"log-packet": 0,
"os": ["all"],
"position": "footer",
"protocol": ["all"],
"quarantine": 0,
"quarantine-expiry": "5m",
"quarantine-log": 1,
"rate-count": 0,
"rate-duration": 60,
"rate-mode": 9,
"rate-track": 0,
"severity": ["all"],
"status": 3
}
],
"extended-log": 0,
"name": "g_ips_sensor_001",
"scan-botnet-connections": 0
},
"url": "/pm/config/global/obj/global/ips/sensor"
}
],
"session": "{{session}}"
}
Note
The
entriesattribute contains the IPS header and footer rulesThe
positionattribute determines whether the IPS rule is in the header (value isheader) of footer (footer) rule block
{
"id": 3,
"data": {
"name": "g_ips_sensor_001"
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/global/obj/global/ips/sensor"
}
2.5.8.2. How to delete a Global IPS sensor?#
The following example shows how to delete the g_ips_sensor_001 Global IPS
sensor from the Global ADOM:
{
"id": 3,
"method": "delete",
"params": [
{
"url": "/pm/config/global/obj/global/ips/sensor/g_ips_sensor_001",
}
]
}
{
"data": null,
"id": 3,
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/global/obj/global/ips/sensor/g_ips_sensor_001"
}
2.5.8.3. How to add ADOMs to a Global IPS sensor?#
The following example shows how to add the demo_001 and demo_002 to the
g_ips_sensor_001 Global IPS sensor in the Global ADOM:
{
"id": 3,
"method": "add",
"params": [
{
"data": [
{
"name": "demo_001"
},
{
"name": "demo_002"
}
],
"url": "/pm/config/global/obj/global/ips/sensor/g_ips_sensor_001/scope member"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/global/obj/global/ips/sensor/g_ips_sensor_001/scope member"
}
]
}
2.5.8.4. How to delete ADOMs from a Global IPS sensor?#
The following example shows how to delete the demo_001 and demo_002
from the g_ips_sensor_001 Global IPS sensor in the Global ADOM:
{
"id": 3,
"method": "delete",
"params": [
{
"data": [
{
"name": "demo_001"
},
{
"name": "demo_002"
}
],
"url": "/pm/config/global/obj/global/ips/sensor/g_ips_sensor_001/scope member"
}
],
"session": "{{session}}"
}
{
"id": 3,
"result": [
{
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/global/obj/global/ips/sensor/g_ips_sensor_001/scope member"
}
]
}
2.5.8.5. How to assign a Global IPS sensor?#
The following example shows how to assign the g_ips_sensor_001 Global IPS sensor to the demo_001 and demo_002 ADOMs:
{
"id": 3,
"method": "exec",
"params": [
{
"data": {
"adom": "global",
"category": 1908,
"flags": "none",
"objs": [
"g_ips_sensor_001"
],
"target": [
{
"adom": "demo_001"
},
{
"adom": "demo_002"
}
]
},
"url": "/securityconsole/assign/objs"
}
],
"session": "{{session}}"
}
Note
The
categoryattribute is the number of the tableglobal ips sensorYou can get this number by issuing following command:
execute fmpolicy print-adom-object Global ?
In the output, you will see this line:
[...] 1908 "global ips sensor" [...]
{
"id": 3,
"result": [
{
"data": {
"task": 1558
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/securityconsole/assign/objs"
}
]
}
2.5.8.6. How to unassign a Global IPS sensor?#
The following example shows how to unassign the g_ips_sensor_001 Global IPS sensor from the demo_001 and demo_002 ADOMs:
{
"id": 3,
"method": "exec",
"params": [
{
"data": {
"adom": "global",
"category": 1908,
"flags": "unassign",
"objs": [
"g_ips_sensor_001"
],
"target": [
{
"adom": "demo_001"
},
{
"adom": "demo_002"
}
]
},
"url": "/securityconsole/assign/objs"
}
],
"session": "{{session}}"
}
Note
The
categoryattribute is the number of the tableglobal ips sensorYou can get this number by issuing following command:
execute fmpolicy print-adom-object Global ?
In the output, you will see this line:
[...] 1908 "global ips sensor" [...]
{
"id": 3,
"result": [
{
"data": {
"task": 1562
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/securityconsole/assign/objs"
}
]
}
2.5.8.7. How to get the assign status for Global IPS sensors?#
Caught in #1051174.
This is to get the information exposed in the following screenshot:
The screenshot above shows two global IPS sensor, g_ips_sensor_001 and
g_ips_sensor_002, along with their assignement status.
You can see that:
The
g_ips_sensor_001global IPS sensor isn’t assigned to thedc_amerADOM; its status is Never installedThe
g_ips_sensor_001global IPS sensor is assigned to thedc_africaADOM but it has pending changes; its status is ModifiedThe
g_ips_sensor_002has been assigned to itsdc_emeaADOM; its status is Synced
The following example shows how to get the same information using the FortiManager API:
{
"id": 2,
"method": "get",
"params": [
{
"stype": "gl_ips_sensor",
"type": "template",
"url": "/pm/config/global/_package/status"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 2,
"result": [
{
"data": [
{
"adom": "dc_africa",
"pkg": "g_ips_sensor_001",
"status": "modified",
"stype": "gl_ips_sensor",
"type": "template"
},
{
"adom": "dc_emea",
"pkg": "g_ips_sensor_002",
"status": "installed",
"stype": "gl_ips_sensor",
"type": "template"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/global/_package/status"
}
]
}
Note
You can see that FortiManager doesn’t return details for the global IPS sensors which aren’t assigned
In this output above, FortiManager didn’t return anything about the
dc_amerADOM since its global IPS sensor isn’t assigned yet
2.5.9. IPS Package Management#
The following capabilities are available for querying IPS signature and package information programmatically. They cover a range of use cases, from retrieving the details of an individual signature (How to get the detail of a specific IPS signature?) to inspecting the contents of a full package release (see How to fetch all signature IDs and details for a given package release version?).
You can look up a single signature by its ID (How to get the detail of a specific IPS signature?), or retrieve the complete set of signature IDs and details contained in a given package release version (How to fetch all signature IDs and details for a given package release version?). It is also possible to compare two versions and return only the delta - the signatures added between them (How to fetch delta signature IDs between two package versions?). All listing queries support pagination through offset and limit parameters, so large result sets can be retrieved in manageable chunks.
In addition to listing the signatures themselves, you can query counts directly: either the total number of signatures in a specific version (How to get total count of signatures for a given package version?), or the number of signatures introduced between two versions (How to get the total count of signatures between two package versions?). A summary query returns the most recent IPS package releases, which is useful for determining the latest available version (How to list the latest IPS packages?). Finally, change log information can be retrieved for an individual signature to track its history over time (How to get the changelog info for a specific IPS signature ID?).
Caught in #1271574 (FortiManager 8.0.1).
2.5.9.1. How to get the detail of a specific IPS signature?#
If you have a specific IPS signature ID, you can get its details using the following FortiManager API request:
{
"id": 3,
"method": "get",
"params": [
{
"data": {
"target": "/fgd/lookup/ency?source=ips&id=25536"
},
"url": "/um/query/productapi"
}
],
"session": "{{session}}",
"verbose": 1
}
Note
The id attribute in the target attribute of the request is the
IPS signature ID you want to query.
{
"cid": 96,
"id": 3,
"result": [
{
"data": "{\"OutbreakAlert\":[],\"ThreatSignal\":[],\"CVE\":\"\",\"Type\":\"ips\",\"ID\":25536,\"Name\":\"1024CMS.Standard.PHP.File.Inclusion\",\"isActive\":true,\"Risk\":\"high\",\"RiskID\":4,\"Summary\":\"This indicates an attack attempt against a remote command-execution vulnerability in 1024 CMS.<br/><br/>A vulnerability has been reported in 1024 CMS that may allow an attacker to execute shell commands on a vulnerable system. This is possible because the user input filters fail to properly sanitize the php_include parameter value that is passed to \\\"standard.php\\\". An attacker may include shell commands by supplying an injection string through the URL.\",\"Symptoms\":\"1024 CMS 1.4.4 and prior versions\",\"Analysis\":\"System Compromise: Remote attackers can gain control of vulnerable systems.\",\"Action\":\"Currently we are not aware of any patches supplied by the vendor for this issue.\",\"DefaultAction\":\"drop\",\"BehaviorList\":[],\"cve_id\":\"\",\"max_epss\":\"\",\"kev\":[],\"os_list\":[\"Windows\",\"Linux\",\"BSD\",\"Solaris\",\"MacOS\"],\"app_list\":[\"PHP_app\"],\"SecurityRefs\":[{\"reftype\":\"other\",\"refid\":\"\",\"url\":\"http://secunia.com/advisories/30951/\"}],\"DetectionAvailability\":[{\"product\":\"fgt\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_low\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_high\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"mobile\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_extended\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"vuln\",\"status\":true},{\"product\":\"fml\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips_extended\",\"status\":true}],\"GroupID\":440,\"Released\":\"2011-05-03 12:00:00\",\"Created\":\"2011-05-03 12:00:00\",\"Updated\":\"2021-11-03 12:00:00\",\"VulnType\":\"Code Injection\",\"Telemetry\":false}",
"status": {
"code": 0,
"message": "OK"
},
"url": "/um/query/productapi"
}
]
}
2.5.9.2. How to fetch all signature IDs and details for a given package release version?#
If you have a specific package version, you can get its signature details using the following FortiManager API request:
{
"id": 3,
"method": "get",
"params": [
{
"data": {
"target": "/srvupd/detail/ips/34.089?detail=1&offset=0&limit=3"
},
"url": "/um/query/productapi"
}
],
"session": "{{session}}",
"verbose": 1
}
Note
The target attribute in the request contains the package version
you want to query (34.089 in this example).
The offset and limit attributes are used for pagination of
the results. In this example, we are requesting the first 3 signatures
of the package version 34.089.
{
"cid": 44,
"id": 3,
"result": [
{
"data": "[{\"Type\":\"ips\",\"Version\":\"34.089\",\"Timestamp\":1758683142,\"ID\":58953,\"Name\":\"ABB.Devices.devName.Path.Traversal\",\"Action\":\"Add\",\"Desc\":\"*\",\"Meta\":{},\"Data\":null,\"action_id\":1,\"OutbreakAlert\":[],\"ThreatSignal\":[],\"Detail\":{\"OutbreakAlert\":[],\"ThreatSignal\":[],\"CVE\":\"CVE-2024-51549\",\"Type\":\"ips\",\"ID\":58953,\"Name\":\"ABB.Devices.devName.Path.Traversal\",\"isActive\":true,\"Risk\":\"critical\",\"RiskID\":5,\"Summary\":\"This indicates an attack attempt to exploit a Path Traversal Vulnerability in multiple ABB devices.<br/><br/>The vulnerability is due to insufficient validation of user-supplied outputs. A remote anonymous attacker can exploit this vulnerability by sending a crafted request to the target server. Successful exploitation could lead to information disclosure.\",\"Symptoms\":\"ABB Matrix-296 version prior to 3.08.02<br/>ABB Matrix-264 version prior to 3.08.02<br/>ABB Matrix-232 version prior to 3.08.02<br/>ABB Matrix-216 version prior to 3.08.02<br/>ABB Matrix-11 version prior to 3.08.02<br/>ABB Nexus-3-264 version prior to 3.08.02<br/>ABB Nexus-3-2128 version prior to 3.08.02<br/>ABB Nexus-264-g version prior to 3.08.02<br/>ABB Nexus-264-f version prior to 3.08.02<br/>ABB Nexus-264-a version prior to 3.08.02<br/>ABB Nexus-264 version prior to 3.08.02<br/>ABB Nexus-2128-g version prior to 3.08.02<br/>ABB Nexus-2128-f version prior to 3.08.02<br/>ABB Nexus-2128-a version prior to 3.08.02<br/>ABB Nexus-2128 version prior to 3.08.02<br/>ABB Aspect-ent-96 version prior to 3.08.02<br/>ABB Aspect-ent-256 version prior to 3.08.02<br/>ABB Aspect-ent-2 version prior to 3.08.02<br/>ABB Aspect-ent-12 version prior to 3.08.02\",\"Analysis\":\"Information Disclosure: attackers can gain sensitive information from vulnerable systems.\",\"Action\":\"Upgrade to the latest version, available from the website<br/>https://search.abb.com/library/Download.aspx?DocumentID=9AKK108469A7497&LanguageCode=en&DocumentPartId=&Action=Launch\",\"DefaultAction\":\"drop\",\"BehaviorList\":[],\"cve_id\":\"CVE-2024-51549\",\"max_epss\":\"0.54%\",\"kev\":[],\"os_list\":[\"Other\"],\"app_list\":[\"PHP_app\"],\"SecurityRefs\":[{\"reftype\":\"cve\",\"refid\":\"2024-51549\",\"url\":\"http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2024-51549\"}],\"DetectionAvailability\":[{\"product\":\"fgt\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_low\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_high\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"mobile\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_extended\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"vuln\",\"status\":true},{\"product\":\"fml\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips_extended\",\"status\":true}],\"GroupID\":448,\"Released\":\"2025-09-16 12:00:00\",\"Created\":\"2025-09-16 12:00:00\",\"Updated\":\"2025-10-01 12:00:00\",\"VulnType\":\"Path Traversal\",\"Telemetry\":false}},{\"Type\":\"ips\",\"Version\":\"34.089\",\"Timestamp\":1758683142,\"ID\":58934,\"Name\":\"D-Link.Devices.usb_paswd.hname.Command.Injection\",\"Action\":\"Add\",\"Desc\":\"*\",\"Meta\":{},\"Data\":null,\"action_id\":1,\"OutbreakAlert\":[],\"ThreatSignal\":[],\"Detail\":{\"OutbreakAlert\":[],\"ThreatSignal\":[],\"CVE\":\"CVE-2025-10440\",\"Type\":\"ips\",\"ID\":58934,\"Name\":\"D-Link.Devices.usb_paswd.hname.Command.Injection\",\"isActive\":true,\"Risk\":\"high\",\"RiskID\":4,\"Summary\":\"This indicates an attack attempt to exploit a Command Injection vulnerability in D-Link Routers.<br/><br/>The vulnerability is due to insufficient validation of user-supplied input in the application. A remote attacker can exploit this with a crafted request to execute arbitrary commands within the context of the system.\",\"Symptoms\":\"D-Link DI-8100 16.07.26A1<br/>D-Link DI-8100G 17.12.20A1<br/>D-Link DI-8200 16.07.26A1<br/>D-Link DI-8200G 17.12.20A1<br/>D-Link DI-8003 16.07.26A1<br/>D-Link DI-8003G 19.12.10A1\",\"Analysis\":\"System Compromise: Remote attackers can gain control of vulnerable systems.\",\"Action\":\"Currently we are unaware of any vendor supplied patch or updates available for this issue.\",\"DefaultAction\":\"drop\",\"BehaviorList\":[],\"cve_id\":\"CVE-2025-10440\",\"max_epss\":\"12.11%\",\"kev\":[],\"os_list\":[\"Other\"],\"app_list\":[\"Other\"],\"SecurityRefs\":[{\"reftype\":\"cve\",\"refid\":\"2025-10440\",\"url\":\"http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2025-10440\"}],\"DetectionAvailability\":[{\"product\":\"fgt\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_low\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_high\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"mobile\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_extended\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"vuln\",\"status\":true},{\"product\":\"fml\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips_extended\",\"status\":true}],\"GroupID\":448,\"Released\":\"2025-09-15 12:00:00\",\"Created\":\"2025-09-15 12:00:00\",\"Updated\":\"2025-10-02 12:00:00\",\"VulnType\":\"OS Command Injection\",\"Telemetry\":false}},{\"Type\":\"ips\",\"Version\":\"34.089\",\"Timestamp\":1758683142,\"ID\":58982,\"Name\":\"Docker.Desktop.Container.Escape.Remote.Code.Execution\",\"Action\":\"Add\",\"Desc\":\"*\",\"Meta\":{},\"Data\":null,\"action_id\":1,\"OutbreakAlert\":[],\"ThreatSignal\":[],\"Detail\":{\"OutbreakAlert\":[],\"ThreatSignal\":[],\"CVE\":\"CVE-2025-9074\",\"Type\":\"ips\",\"ID\":58982,\"Name\":\"Docker.Desktop.Container.Escape.Remote.Code.Execution\",\"isActive\":true,\"Risk\":\"high\",\"RiskID\":4,\"Summary\":\"This indicates an attack attempt to exploit a Remote Code Execution Vulnerability in Docker Desktop.<br/><br/>The vulnerability is due to improper access controls of API requests from a container to the host. A remote attacker could exploit this vulnerability by sending a maliciously crafted request to the target server. Successful exploitation could lead to remote code executionon the vulnerable host.\",\"Symptoms\":\"Docker Desktop from 4.25 prior to 4.44.3\",\"Analysis\":\"System Compromise: Remote attackers can gain control of vulnerable systems.\",\"Action\":\"Apply the most recent upgrade or patch from the vendor.<br/>https://docs.docker.com/desktop/release-notes/#4443\",\"DefaultAction\":\"drop\",\"BehaviorList\":[],\"cve_id\":\"CVE-2025-9074\",\"max_epss\":\"1.63%\",\"kev\":[],\"os_list\":[\"Windows\",\"Linux\"],\"app_list\":[\"Other\"],\"SecurityRefs\":[{\"reftype\":\"cve\",\"refid\":\"2025-9074\",\"url\":\"http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2025-9074\"}],\"DetectionAvailability\":[{\"product\":\"fgt\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_low\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_high\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"mobile\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_extended\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"vuln\",\"status\":true},{\"product\":\"fml\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips_extended\",\"status\":true}],\"GroupID\":448,\"Released\":\"2025-09-22 12:00:00\",\"Created\":\"2025-09-22 12:00:00\",\"Updated\":\"2025-10-01 12:00:00\",\"VulnType\":\"Permission/Privilege/Access Control\",\"Telemetry\":false}}]",
"status": {
"code": 0,
"message": "OK"
},
"url": "/um/query/productapi"
}
]
}
2.5.9.3. How to fetch delta signature IDs between two package versions?#
You can obtain the list of signature IDs that were added between two package versions using the following FortiManager API request:
{
"id": 3,
"method": "get",
"params": [
{
"data": {
"target": "/srvupd/detail/ips/34.085/34.089?detail=1&offset=0&limit=3"
},
"url": "/um/query/productapi"
}
],
"session": "{{version}}",
"verbose": 1
}
Note
The target attribute in the request contains the two package
versions you want to compare (34.085 and 34.089 in this
example).
The offset and limit attributes are used for pagination of
the results. In this example, we are requesting the first 3 signatures
that were added between the two package versions.
{
"cid": 60,
"id": 3,
"result": [
{
"data": "[{\"Type\":\"ips\",\"Version\":\"34.089\",\"Timestamp\":1758683142,\"ID\":58953,\"Name\":\"ABB.Devices.devName.Path.Traversal\",\"Action\":\"Add\",\"Desc\":\"*\",\"Meta\":{},\"Data\":null,\"action_id\":1,\"OutbreakAlert\":[],\"ThreatSignal\":[],\"Detail\":{\"OutbreakAlert\":[],\"ThreatSignal\":[],\"CVE\":\"CVE-2024-51549\",\"Type\":\"ips\",\"ID\":58953,\"Name\":\"ABB.Devices.devName.Path.Traversal\",\"isActive\":true,\"Risk\":\"critical\",\"RiskID\":5,\"Summary\":\"This indicates an attack attempt to exploit a Path Traversal Vulnerability in multiple ABB devices.<br/><br/>The vulnerability is due to insufficient validation of user-supplied outputs. A remote anonymous attacker can exploit this vulnerability by sending a crafted request to the target server. Successful exploitation could lead to information disclosure.\",\"Symptoms\":\"ABB Matrix-296 version prior to 3.08.02<br/>ABB Matrix-264 version prior to 3.08.02<br/>ABB Matrix-232 version prior to 3.08.02<br/>ABB Matrix-216 version prior to 3.08.02<br/>ABB Matrix-11 version prior to 3.08.02<br/>ABB Nexus-3-264 version prior to 3.08.02<br/>ABB Nexus-3-2128 version prior to 3.08.02<br/>ABB Nexus-264-g version prior to 3.08.02<br/>ABB Nexus-264-f version prior to 3.08.02<br/>ABB Nexus-264-a version prior to 3.08.02<br/>ABB Nexus-264 version prior to 3.08.02<br/>ABB Nexus-2128-g version prior to 3.08.02<br/>ABB Nexus-2128-f version prior to 3.08.02<br/>ABB Nexus-2128-a version prior to 3.08.02<br/>ABB Nexus-2128 version prior to 3.08.02<br/>ABB Aspect-ent-96 version prior to 3.08.02<br/>ABB Aspect-ent-256 version prior to 3.08.02<br/>ABB Aspect-ent-2 version prior to 3.08.02<br/>ABB Aspect-ent-12 version prior to 3.08.02\",\"Analysis\":\"Information Disclosure: attackers can gain sensitive information from vulnerable systems.\",\"Action\":\"Upgrade to the latest version, available from the website<br/>https://search.abb.com/library/Download.aspx?DocumentID=9AKK108469A7497&LanguageCode=en&DocumentPartId=&Action=Launch\",\"DefaultAction\":\"drop\",\"BehaviorList\":[],\"cve_id\":\"CVE-2024-51549\",\"max_epss\":\"0.54%\",\"kev\":[],\"os_list\":[\"Other\"],\"app_list\":[\"PHP_app\"],\"SecurityRefs\":[{\"reftype\":\"cve\",\"refid\":\"2024-51549\",\"url\":\"http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2024-51549\"}],\"DetectionAvailability\":[{\"product\":\"fgt\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_low\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_high\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"mobile\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_extended\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"vuln\",\"status\":true},{\"product\":\"fml\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips_extended\",\"status\":true}],\"GroupID\":448,\"Released\":\"2025-09-16 12:00:00\",\"Created\":\"2025-09-16 12:00:00\",\"Updated\":\"2025-10-01 12:00:00\",\"VulnType\":\"Path Traversal\",\"Telemetry\":false}},{\"Type\":\"ips\",\"Version\":\"34.085\",\"Timestamp\":1758078255,\"ID\":58873,\"Name\":\"ALFA.AIP-W512.formBTClinetSetting.Buffer.Overflow\",\"Action\":\"Add\",\"Desc\":\"*\",\"Meta\":{},\"Data\":null,\"action_id\":1,\"OutbreakAlert\":[],\"ThreatSignal\":[],\"Detail\":{\"OutbreakAlert\":[],\"ThreatSignal\":[],\"CVE\":\"CVE-2025-45846\",\"Type\":\"ips\",\"ID\":58873,\"Name\":\"ALFA.AIP-W512.formBTClinetSetting.Buffer.Overflow\",\"isActive\":true,\"Risk\":\"high\",\"RiskID\":4,\"Summary\":\"This indicates an attack attempt against a Buffer Overflow vulnerability in ALFA AIP-W512.<br/><br/>The vulnerability is due to insufficient sanitizing of user supplied inputs in the application. A remote attacker may be ableto exploit this to execute arbitrary code within the context of the application or possibly cause a denial-of-service condition.\",\"Symptoms\":\"ALFA AIP-W512 version 3.2.2.2.3\",\"Analysis\":\"System Compromise: Remote attackers can gain control of vulnerable systems.\",\"Action\":\"Currently, we are unaware of any vendor supplied patch or updates available for this issue.\",\"DefaultAction\":\"drop\",\"BehaviorList\":[],\"cve_id\":\"CVE-2025-45846\",\"max_epss\":\"0.51%\",\"kev\":[],\"os_list\":[\"Other\"],\"app_list\":[\"Other\"],\"SecurityRefs\":[{\"reftype\":\"cve\",\"refid\":\"2025-45846\",\"url\":\"http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2025-45846\"}],\"DetectionAvailability\":[{\"product\":\"fgt\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_low\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_high\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"mobile\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_extended\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"vuln\",\"status\":true},{\"product\":\"fml\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips_extended\",\"status\":true}],\"GroupID\":448,\"Released\":\"2025-09-09 12:00:00\",\"Created\":\"2025-09-09 12:00:00\",\"Updated\":\"2025-10-06 12:00:00\",\"VulnType\":\"Buffer Errors\",\"Telemetry\":false}},{\"Type\":\"ips\",\"Version\":\"34.085\",\"Timestamp\":1758078255,\"ID\":58878,\"Name\":\"ALFA.WiFi.CampPro.APSecurity.Buffer.Overflow\",\"Action\":\"Add\",\"Desc\":\"*\",\"Meta\":{},\"Data\":null,\"action_id\":1,\"OutbreakAlert\":[],\"ThreatSignal\":[],\"Detail\":{\"OutbreakAlert\":[],\"ThreatSignal\":[],\"CVE\":\"CVE-2025-29045\",\"Type\":\"ips\",\"ID\":58878,\"Name\":\"ALFA.WiFi.CampPro.APSecurity.Buffer.Overflow\",\"isActive\":true,\"Risk\":\"high\",\"RiskID\":4,\"Summary\":\"This indicates an attack attempt against a Buffer Overflow vulnerability in ALFA WiFi CampPro.<br/><br/>The vulnerability is due toinsufficient sanitizing of user supplied inputs in the application. A remote attacker may be able to exploit this to execute arbitrary code within the context of the application or possibly cause a denial-of-service condition.\",\"Symptoms\":\"ALFA WiFi CampPro version 2.29\",\"Analysis\":\"System Compromise: Remote attackers can gain control of vulnerable systems.\",\"Action\":\"Currently, we are unaware of any vendor supplied patch or updates available for this issue.\",\"DefaultAction\":\"drop\",\"BehaviorList\":[],\"cve_id\":\"CVE-2025-29045\",\"max_epss\":\"1.01%\",\"kev\":[],\"os_list\":[\"Other\"],\"app_list\":[\"Other\"],\"SecurityRefs\":[{\"reftype\":\"cve\",\"refid\":\"2025-29045\",\"url\":\"http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2025-29045\"}],\"DetectionAvailability\":[{\"product\":\"fgt\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_low\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"av_extended_high\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"mobile\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"av_extended\",\"status\":false},{\"product\":\"fct\",\"sigdb\":\"vuln\",\"status\":true},{\"product\":\"fml\",\"sigdb\":\"av_active\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips\",\"status\":false},{\"product\":\"fgt\",\"sigdb\":\"ips_extended\",\"status\":true}],\"GroupID\":448,\"Released\":\"2025-09-09 12:00:00\",\"Created\":\"2025-09-09 12:00:00\",\"Updated\":\"2025-10-02 12:00:00\",\"VulnType\":\"Buffer Errors\",\"Telemetry\":false}}]",
"status": {
"code": 0,
"message": "OK"
},
"url": "/um/query/productapi"
}
]
}
2.5.9.4. How to get total count of signatures for a given package version?#
You can obtain the total count of signature in a given package version using the following FortiManager API request:
{
"id": 3,
"method": "get",
"params": [
{
"data": {
"target": "/srvupd/count-detail/ips/34.089"
},
"url": "/um/query/productapi"
}
],
"session": "{{session}}",
"verbose": 1
}
Note
The target attribute in the request contains the package
version you want to get the total count of signatures from (34.089
in this example).
{
"cid": 92,
"id": 3,
"result": [
{
"data": "{\"Count\":39,\"Total\":39,\"Add\":36,\"Mod\":3,\"Del\":0}",
"status": {
"code": 0,
"message": "OK"
},
"url": "/um/query/productapi"
}
]
}
Note
Count: 39 is the number of signatures to consider. This package
contains 39 signatures which were either added, modified or deleted.
Add: 36 is the number of new signatures. Mod: 3 is the number
of updated signatures and Del: 0 is the number of removed
signatures. Total: 39 is the sum of Add + Mod + Del.
2.5.9.5. How to get the total count of signatures between two package versions?#
You can obtain the total count of signature IDs that were added between two package versions using the following FortiManager API request:
{
"id": 3,
"method": "get",
"params": [
{
"data": {
"target": "/srvupd/count-detail/ips/34.080/34.089"
},
"url": "/um/query/productapi"
}
],
"session": "{{session}}",
"verbose": 1
}
Note
The target attribute in the request contains the two package
versions you want to compare (34.085 and 34.089 in this
example).
{
"cid": 96,
"id": 3,
"result": [
{
"data": "{\"Count\":226,\"Total\":226,\"Add\":129,\"Mod\":58,\"Del\":39}",
"status": {
"code": 0,
"message": "OK"
},
"url": "/um/query/productapi"
}
]
}
Note
Count: 39 is the number of signatures to consider. There are
package 226 signatures which were either added, modified or deleted
between those two package versions.
Add: 129 is the number of new signatures. Mod: 58 is the number
of updated signatures and Del: 39 is the number of removed
signatures. Total: 226 is the sum of Add + Mod + Del.
2.5.9.6. How to list the latest IPS packages?#
The example below shows how to get the last 10 IPS packages information:
{
"id": 3,
"method": "get",
"params": [
{
"data": {
"target": "/srvupd/summary?types=ips&limit=10"
},
"url": "/um/query/productapi"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"cid": 100,
"id": 3,
"result": [
{
"data": "[{\"Type\":\"ips\",\"Version\":\"36.260\",\"ID\":\"36.260\",\"OS\":\"\",\"Timestamp\":1784826668,\"New\":7,\"Mod\":2,\"Del\":0,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6366661,\"Total\":0},{\"Type\":\"ips\",\"Version\":\"36.259\",\"ID\":\"36.259\",\"OS\":\"\",\"Timestamp\":1784736832,\"New\":13,\"Mod\":1,\"Del\":0,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6363979,\"Total\":0},{\"Type\":\"ips\",\"Version\":\"36.258\",\"ID\":\"36.258\",\"OS\":\"\",\"Timestamp\":1784655048,\"New\":11,\"Mod\":10,\"Del\":0,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6361720,\"Total\":0},{\"Type\":\"ips\",\"Version\":\"36.257\",\"ID\":\"36.257\",\"OS\":\"\",\"Timestamp\":1784566792,\"New\":8,\"Mod\":24,\"Del\":0,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6360077,\"Total\":0},{\"Type\":\"ips\",\"Version\":\"36.256\",\"ID\":\"36.256\",\"OS\":\"\",\"Timestamp\":1784225777,\"New\":11,\"Mod\":4,\"Del\":0,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6350232,\"Total\":0},{\"Type\":\"ips\",\"Version\":\"36.255\",\"ID\":\"36.255\",\"OS\":\"\",\"Timestamp\":1784134666,\"New\":4,\"Mod\":4,\"Del\":0,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6347464,\"Total\":0},{\"Type\":\"ips\",\"Version\":\"36.254\",\"ID\":\"36.254\",\"OS\":\"\",\"Timestamp\":1784075133,\"New\":50,\"Mod\":3,\"Del\":0,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6346146,\"Total\":0},{\"Type\":\"ips\",\"Version\":\"36.253\",\"ID\":\"36.253\",\"OS\":\"\",\"Timestamp\":1784051622,\"New\":46,\"Mod\":8,\"Del\":0,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6345816,\"Total\":0},{\"Type\":\"ips\",\"Version\":\"36.252\",\"ID\":\"36.252\",\"OS\":\"\",\"Timestamp\":1783961518,\"New\":10,\"Mod\":21,\"Del\":0,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6344283,\"Total\":0},{\"Type\":\"ips\",\"Version\":\"36.251\",\"ID\":\"36.251\",\"OS\":\"\",\"Timestamp\":1783614592,\"New\":0,\"Mod\":21,\"Del\":1,\"Attr\":0,\"Rename\":0,\"PreRelease\":0,\"SUID\":6338724,\"Total\":0}]",
"status": {
"code": 0,
"message": "OK"
},
"url": "/um/query/productapi"
}
]
}
2.5.9.7. How to get the changelog info for a specific IPS signature ID?#
The example below shows how to get the changelog for a given IPS signature ID:
{
"id": 3,
"method": "get",
"params": [
{
"data": {
"target": "/srvupd/history/ips/56720"
},
"url": "/um/query/productapi"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"cid": 108,
"id": 3,
"result": [
{
"data": "[{\"Type\":\"ips\",\"Version\":\"36.256\",\"Timestamp\":1784225777,\"ID\":56720,\"Name\":\"D-Link.Routers.formDeviceReboot.Buffer.Overflow\",\"Action\":\"Mod\",\"Details\":\"*Sig Added\"},{\"Type\":\"ips\",\"Version\":\"29.943\",\"Timestamp\":1737998136,\"ID\":56720,\"Name\":\"D-Link.Routers.formDeviceReboot.Buffer.Overflow\",\"Action\":\"Mod\",\"Details\":\"Name:D-Link.DIR-605L.formDeviceReboot.Buffer.Overflow:D-Link.Routers.formDeviceReboot.Buffer.Overflow\"},{\"Type\":\"ips\",\"Version\":\"28.892\",\"Timestamp\":1730225097,\"ID\":56720,\"Name\":\"D-Link.DIR-605L.formDeviceReboot.Buffer.Overflow\",\"Action\":\"Mod\",\"Details\":\"Default_action:pass:drop\"},{\"Type\":\"ips\",\"Version\":\"28.887\",\"Timestamp\":1729530505,\"ID\":56720,\"Name\":\"D-Link.DIR-605L.formDeviceReboot.Buffer.Overflow\",\"Action\":\"Add\",\"Details\":\"*\"}]",
"status": {
"code": 0,
"message": "OK"
},
"url": "/um/query/productapi"
}
]
}
2.6. Virtual Patching#
2.6.1. How to get the Virtual Patching Signatures list?#
Caught in #0983425 and #1103218
Following example shows how to get the Virtual Patching Signatures list using
the demo ADOM:
{
"id": 1,
"method": "get",
"params": [
{
"url": "/pm/config/adom/demo/_fdsdb/rule/otvp"
}
],
"session": "{{session}}"
}
{
"id": 1,
"result": [
{
"data": [
{
"act": "1",
"app": "Other",
"date": "20240215",
"group": "vPatch",
"location": "server",
"name": "OpenSSL.Heartbleed.Attack.",
"os": "All",
"rev": "26735",
"rule-id": 38315,
"service": "TCP",
"sev": "4",
"status": "1"
},
{
"act": "0",
"app": "Other",
"date": "20240213",
"group": "vPatch",
"location": "server",
"name": "HTTP.Chunk.Length.Invalid.",
"os": "All",
"rev": "24020",
"rule-id": 39122,
"service": "TCP,HTTP",
"sev": "0",
"status": "0"
},
{"...": "..."},
{
"act": "1",
"app": "PHP_app",
"date": "20240312",
"group": "vPatch",
"location": "server",
"name": "Advantech.R-SeeNet.Options.PHP.Local.File.Inclusion.",
"os": "All",
"rev": "21353",
"rule-id": 10005254,
"service": "TCP,HTTP",
"sev": "4",
"status": "1"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/_fdsdb/rule/otvp",
"version": "27.748"
}
]
}
2.7. Inline CASB Profile#
2.7.1. How to get list of SaaS Applications?#
Caught in #1094160.
The following example shows how to get the list of SaaS applications using the
demo ADOM:
{
"id": 3,
"method": "get",
"params": [
{
"attr": "saas-application/name",
"option": "datasrc",
"url": "/pm/config/adom/demo/obj/casb/profile"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": {
"casb saas-application": [
{
"casb-name": "adobe",
"domains": [],
"name": "adobe",
"obj seq": 21,
"oid": 4684,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "adobe-acrobat",
"domains": [],
"name": "adobe-acrobat",
"obj seq": 22,
"oid": 4685,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "adobe-creativecloud",
"domains": [],
"name": "adobe-creativecloud",
"obj seq": 23,
"oid": 4686,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "box",
"domains": [],
"name": "box",
"obj seq": 11,
"oid": 4674,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "docusign",
"domains": [],
"name": "docusign",
"obj seq": 2,
"oid": 4665,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "dropbox",
"domains": [],
"name": "dropbox",
"obj seq": 12,
"oid": 4675,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "dropbox-paper",
"domains": [],
"name": "dropbox-paper",
"obj seq": 1,
"oid": 4664,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "github",
"domains": [],
"name": "github",
"obj seq": 24,
"oid": 4687,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "gitlab",
"domains": [],
"name": "gitlab",
"obj seq": 25,
"oid": 4688,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "google",
"domains": [],
"name": "google",
"obj seq": 7,
"oid": 4670,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "google-calendar",
"domains": [],
"name": "google-calendar",
"obj seq": 17,
"oid": 4680,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "google-docs",
"domains": [],
"name": "google-docs",
"obj seq": 26,
"oid": 4689,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "google-drive",
"domains": [],
"name": "google-drive",
"obj seq": 9,
"oid": 4672,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "google-gmail",
"domains": [],
"name": "google-gmail",
"obj seq": 6,
"oid": 4669,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "google-maps",
"domains": [],
"name": "google-maps",
"obj seq": 28,
"oid": 4691,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "google-meet",
"domains": [],
"name": "google-meet",
"obj seq": 27,
"oid": 4690,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "google-translate",
"domains": [],
"name": "google-translate",
"obj seq": 29,
"oid": 4692,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "jira",
"domains": [],
"name": "jira",
"obj seq": 35,
"oid": 4698,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "linkedin",
"domains": [],
"name": "linkedin",
"obj seq": 30,
"oid": 4693,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "meta-facebook",
"domains": [],
"name": "meta-facebook",
"obj seq": 31,
"oid": 4694,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "meta-instagram",
"domains": [],
"name": "meta-instagram",
"obj seq": 32,
"oid": 4695,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "microsoft",
"domains": [],
"name": "microsoft",
"obj seq": 18,
"oid": 4681,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "microsoft-bing",
"domains": [],
"name": "microsoft-bing",
"obj seq": 16,
"oid": 4679,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "microsoft-office365",
"domains": [],
"name": "microsoft-office365",
"obj seq": 33,
"oid": 4696,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "microsoft-onedrive",
"domains": [],
"name": "microsoft-onedrive",
"obj seq": 4,
"oid": 4667,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "microsoft-outlook",
"domains": [],
"name": "microsoft-outlook",
"obj seq": 8,
"oid": 4671,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "notion",
"domains": [],
"name": "notion",
"obj seq": 15,
"oid": 4678,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "openai",
"domains": [],
"name": "openai",
"obj seq": 20,
"oid": 4683,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "servicenow",
"domains": [],
"name": "servicenow",
"obj seq": 34,
"oid": 4697,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "ubuntu",
"domains": [],
"name": "ubuntu",
"obj seq": 10,
"oid": 4673,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "vimeo",
"domains": [],
"name": "vimeo",
"obj seq": 5,
"oid": 4668,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "yahoo",
"domains": [],
"name": "yahoo",
"obj seq": 13,
"oid": 4676,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "yahoo-mail",
"domains": [],
"name": "yahoo-mail",
"obj seq": 19,
"oid": 4682,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "yandex",
"domains": [],
"name": "yandex",
"obj seq": 14,
"oid": 4677,
"status": "enable",
"type": "built-in"
},
{
"casb-name": "youtube",
"domains": [],
"name": "youtube",
"obj seq": 3,
"oid": 4666,
"status": "enable",
"type": "built-in"
},
{
"domains": [],
"name": "adobe",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "adobe-acrobat",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "adobe-creativecloud",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "adp",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "adp-workforcenow",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "apple",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "apple-icloud",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "atlassian",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "box",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "confluence",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "discord",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "docusign",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "dropbox",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "dropbox-paper",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "dropbox-sign",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "github",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "gitlab",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "google",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "google-calendar",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "google-docs",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "google-drive",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "google-gmail",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "google-meet",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "google-play",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "google-translate",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "jira",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "linkedin",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "mailchimp",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "meta-facebook",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "meta-instagram",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "microsoft",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "microsoft-bing",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "microsoft-office365",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "microsoft-onedrive",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "microsoft-outlook",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "microsoft-teams",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "monday",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "notion",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "okta",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "openai",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "oracle-cloud",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "salesforce",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "salesforce-trailblazer",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "sap",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "servicenow",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "shopify",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "slack",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "snowflake",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "splunk-cloud",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "survey-monkey",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "tableau-cloud",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "trello",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "vimeo",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "webex",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "wix",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "workday",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "workday-myworkdayjobs",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "yahoo",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "yahoo-mail",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "yandex",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "youtube",
"oid": 0,
"status": "enable",
"type": "customized"
},
{
"domains": [],
"name": "zoom",
"oid": 0,
"status": "enable",
"type": "customized"
}
]
},
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/casb/profile"
}
]
}
Alternatively, and starting with FortiManager 7.4.11, 7.6.7 or 8.0.0 (#1194560), you can use the following FortiManager API request:
{
"id": 3,
"method": "get",
"params": [
{
"option": [
"get reserved"
],
"url": "/pm/config/adom/demo/obj/casb/saas-application"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"domains": [],
"name": "adobe",
"oid": 0,
"status": "enable",
"type": "customized"
},
{"...": "..."},
{
"casb-name": "jira",
"domains": [],
"input-attributes": null,
"name": "jira",
"obj seq": 35,
"oid": 5067,
"output-attributes": null,
"status": "enable",
"type": "built-in"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/obj/casb/saas-application"
}
]
}
Seen in #1281997, another alternative which seems to give more details:
{
"id": 3,
"method": "get",
"params": [
{
"url": "/pm/config/adom/demo/_fdsdb/casb/saas-application"
}
],
"session": "{{session}}",
"verbose": 1
}
{
"id": 3,
"result": [
{
"data": [
{
"category": "E-commerce",
"deprecated": 0,
"disabled": 0,
"display-name": "Printful",
"domain": "printful.com",
"ext-domains": "[ \"printful.com\" ]",
"icon-id": 0,
"name": "printful",
"popularity": 0,
"uuid": "000da27d-ced9-4aad-8d2a-ac5a72ec2d2f"
},
{
"category": "Collaboration/Productivity",
"deprecated": 0,
"disabled": 0,
"display-name": "Clicktime",
"domain": "clicktime.com",
"ext-domains": "[ \"clicktime.com\" ]",
"icon-id": 0,
"name": "clicktime",
"popularity": 0,
"uuid": "001178b4-4e6d-4b04-a234-b0c02efd839f"
},
{
"category": "Sales/CRM",
"deprecated": 0,
"disabled": 0,
"display-name": "Acuity Scheduling",
"domain": "acuityscheduling.com",
"ext-domains": "[ \"acuityscheduling.com\" ]",
"icon-id": 0,
"name": "acuity-scheduling",
"popularity": 0,
"uuid": "002c213d-1903-4f10-bc04-e45fea3758ae"
},
{"...": "..."},
{
"category": "Analytics/Business Intelligence",
"deprecated": 0,
"disabled": 0,
"display-name": "Piano.io",
"domain": "cxense.com",
"ext-domains": "[ \"cxense.com\", \"piano.io\" ]",
"icon-id": 0,
"name": "piano",
"popularity": 0,
"uuid": "ffe6db87-589a-4689-9fa1-c4a558a202f3"
},
{
"category": "IT/DevOps",
"deprecated": 0,
"disabled": 0,
"display-name": "Tray.io",
"domain": "tray.com",
"ext-domains": "[ \"tray.com\" ]",
"icon-id": 0,
"name": "trayio",
"popularity": 0,
"uuid": "ffe73113-0511-46d2-a1e9-6ea9c35c50bd"
},
{
"category": "IT/DevOps",
"deprecated": 0,
"disabled": 0,
"display-name": "Blazemeter",
"domain": "blazemeter.com",
"ext-domains": "[ \"blazemeter.com\" ]",
"icon-id": 0,
"name": "blazemeter",
"popularity": 0,
"uuid": "fff8fa91-36d0-4066-adb0-2633c8661151"
}
],
"status": {
"code": 0,
"message": "OK"
},
"url": "/pm/config/adom/demo/_fdsdb/casb/saas-application",
"version": "1.10"
}
]
}