Comments (2)
@durbin-git thank you for using Steampipe. Good to see this feedback, as you mentioned, Azure changing the response, which may result to change certain queries. We will look into this and fix it soon.
from steampipe-mod-azure-compliance.
Hi @durbin-git thank you for your feedback. We were able to reproduce the bug, your assumption is correct, Azure has remove the key vulnerabilityAssessmentProperties
from response . We have fixed the query for now and also we are checking if the same issue exist for other queries as well.
The returned JSON structure of vulnerability assessments for an instance:
"vulnerability_assessments": [
{
"id": "/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/nist-test_group/providers/Microsoft.Sql/managedInstances/tets566/vulnerabilityAssessments/Default",
"name": "Default",
"recurringScans": {
"emailSubscriptionAdmins": true,
"isEnabled": true
},
"type": "Microsoft.Sql/managedInstances/vulnerabilityAssessments"
}
]
The SQL query:
> with vulnerability_assessments as (
select
distinct i.id as id
from
azure_mssql_managed_instance as i,
jsonb_array_elements(vulnerability_assessments) a
where
a -> 'recurringScans' ->> 'isEnabled' = 'true'
and a ->> 'name' = 'Default'
)
select
-- Required Columns
s.id as resource,
case
when a.id is not null then 'ok'
else 'alarm'
end as status,
case
when a.id is not null then s.title || ' vulnerability assessment enabled.'
else s.title || ' vulnerability assessment disabled.'
end as reason,
-- Additional Dimensions
resource_group,
sub.display_name as subscription
from
azure_mssql_managed_instance as s
left join vulnerability_assessments as a on s.id = a.id,
azure_subscription as sub
where
sub.subscription_id = s.subscription_id;
The SQL query result:
[
{
"reason": "tets566 vulnerability assessment enabled.",
"resource": "/subscriptions/xxxx-xxx/resourceGroups/nist-test_group/providers/Microsoft.Sql/managedInstances/tets566",
"resource_group": "nist-test_group",
"status": "ok",
"subscription": "xxxx"
}
]
from steampipe-mod-azure-compliance.
Related Issues (20)
- Missing implementation of CIS 3.14 HOT 1
- Missing implementation of CIS 4.3.7 HOT 2
- Keep consistency in indicating vulnerable resources (3.10)
- Update Benchmark: HIPAA HITRUST 9.2
- Fix query sql_database_allow_internet_access for setting specified endIpAddress
- Ensure that 'Data encryption' is set to 'On' on a SQL query should ignore master database
- control.cis_v200_5_1_3 is returning false negatives HOT 2
- control.cis_v200_5_1_4 is returning false negatives HOT 2
- Update Benchmark: NIST SP 800-53 Revision 5
- Add additional controls to 'Other Compliance Checks'
- Use single query for checking for appservice azure defender enable check
- Fix CIS v2.0.0 5.2.X by replacing alert.location = 'global' & removing additional alert.condition for 'resourceType' HOT 5
- Add/Update monthly controls [Oct 23]
- Handle error null in iam_user_not_allowed_to_create_security_group & iam_user_not_allowed_to_register_application HOT 2
- Update mod.sp to address deprecation warning
- compute_vm_tcp_udp_access_restricted_internet fails to evaluate join condition
- Depending on aggregated subscriptions, duplicate benchmark results with the same result HOT 1
- Kubernetes Outdated Software Version Regex bug HOT 1
- Add SOC 2 controls for Azure HOT 2
- Add new controls in all_controls benchmark HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steampipe-mod-azure-compliance.