- Products
- Learn
- Local User Groups
- Partners
- More
Policy Insights and Policy Auditor in Action
19 November @ 5pm CET / 11am ET
Access Control and Threat Prevention Best Practices
Watch HereOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Hi all,
What I would be trying to achieve is to figure out which objects is edited for creating configuration sheet.
I prefer not to include default object list in it due to its large amount of information.
Objects other than service ones are checked manually, but when it comes to service objects, it takes me forever to finish checking, too many for my eyes.
I thought just diffing customer's service objects list with the default one would do, but SmartConsole allows me to export them as CSV only with basic config info like port number, and comments.
Its advanced settings such as "Match for Any" are not subject to print.
Are there any useful tips to list those advanced settings?
Also much appreciated for any empirical comments!
Saitoh
You might to try Management API, although you will need to run for each type separately.
For example:
mgmt_cli -r true show services-tcp details-level full --format json
https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-services-tcp~v2%20
P.S.
I think of time in Last Modified as a sign of configured object, but somehow colleagues of mine will not be satisfied unless actual diff of those settings is done.
They do not trust the value in Last Modified...
You might to try Management API, although you will need to run for each type separately.
For example:
mgmt_cli -r true show services-tcp details-level full --format json
https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-services-tcp~v2%20
And note that you can use jq to filter output for services which have been modified by a person like so:
[Expert@MyManagement]# mgmt_cli -f json -r true show services-tcp limit 500 details-level full | jq '.objects[]|select(."meta-info"."last-modifier" != "System")|.'
{
"uid": "...",
"name": "Active_Directory_TCP_123",
"type": "service-tcp",
"domain": {...},
"enable-tcp-resource": false,
"sync-connections-on-cluster": true,
"use-delayed-sync": false,
"delayed-sync-value": 30,
"port": "123",
"match-by-protocol-signature": false,
"override-default-settings": false,
"session-timeout": 3600,
"use-default-session-timeout": true,
"match-for-any": false,
"aggressive-aging": {
"enable": true,
"timeout": 0,
"use-default-timeout": true,
"default-timeout": 0
},
"keep-connections-open-after-policy-installation": false,
"comments": "black",
"color": "black",
"icon": "Services/TCPService",
"tags": [],
"meta-info": {
"lock": "unlocked",
"validation-state": "ok",
"last-modify-time": {...},
"last-modifier": "WEB_API",
"creation-time": {...},
"creator": "WEB_API"
},
"read-only": false,
"available-actions": {
"edit": "true",
"delete": "true",
"clone": "true"
}
}
...
A side note - when we upgraded to r81.20 we lost all history and most object/rule was tagged as System - with the date of the upgrade being the last modified date. We discovered it a couple of days after, preventing any rollback.
We had most objects modified back to the original date with some work done by Diamond from a backup, but not all.
Just keep it in mind if you are using this for something 'important' 🙂
/Henrik
Dear @Henrik_Noerr1,
Thanks for sharing your experience.
Your comments made me want to test if last_modified/modifier were updated or not when making changes, and
found out they were not surprisingly!
I therefore went for extracting all the details of objects in the appliance with customer's config and default one, diffing them just to be sure.
Your comments helped me a lot, much appreciated!
Saitoh
Dear @Bob_Zimmerman,
Thank you for sharing your knowledge!
I did not know of jq command. Having tried, I found it really useful.
It is always good to know something new 🙂
Saitoh
Dear @Tal_Paz-Fridman,
Thanks for your comment!
I followed your instruction and run mgmt_cli in the appliance with customer's config and default config.
Diffing each result gave me the objects they edited, which is what I would like to know.
I created the macro for this procedure. Much appreciated!
Saitoh
Thanks for letting us know.
Andy
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 24 | |
| 18 | |
| 13 | |
| 12 | |
| 12 | |
| 10 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
Wed 19 Nov 2025 @ 11:00 AM (EST)
TechTalk: Improve Your Security Posture with Threat Prevention and Policy InsightsThu 20 Nov 2025 @ 05:00 PM (CET)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - AMERThu 20 Nov 2025 @ 10:00 AM (CST)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - EMEAWed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchWed 19 Nov 2025 @ 11:00 AM (EST)
TechTalk: Improve Your Security Posture with Threat Prevention and Policy InsightsThu 20 Nov 2025 @ 05:00 PM (CET)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - AMERThu 20 Nov 2025 @ 10:00 AM (CST)
Hacking LLM Applications: latest research and insights from our LLM pen testing projects - EMEAThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAWed 26 Nov 2025 @ 12:00 PM (COT)
Panama City: Risk Management a la Parrilla: ERM, TEM & Meat LunchAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY