{"id":9103,"date":"2020-07-23T21:36:55","date_gmt":"2020-07-23T20:36:55","guid":{"rendered":"https:\/\/staging-site.42crunch.com\/?p=9103"},"modified":"2022-11-23T13:38:10","modified_gmt":"2022-11-23T13:38:10","slug":"webinar-questions-openapi-for-api-security","status":"publish","type":"post","link":"https:\/\/staging2022.42crunch.com\/webinar-questions-openapi-for-api-security\/","title":{"rendered":"Questions Answered: OpenAPI for API Security"},"content":{"rendered":"
\n

You had questions, and we’ve got answers!<\/strong><\/h2>\n
Thank you for all the questions submitted on our webinar: “OpenAPI for API Security – Why guess when you know?!<\/strong>”\u00a0Below is the replay and all the answers to the questions that were asked. If you’d like more information please feel free to contact us<\/a>.<\/div>\n

 <\/p>\n<\/div>\n

\n

Webinar:<\/strong> OpenAPI for API Security: Why guess when you know?!<\/a><\/p>\n

Slide Deck:<\/strong> OpenAPI for API Security Slide Deck<\/a><\/p>\n<\/div>\n

<\/h5>\n
Just wondering how it differs from nginx with WAF being applied? Is it ML built in or something else?<\/b><\/h5>\n

We are not using ML at all\u00a0 – We are using natively the OAS file to protect APIs, enforcing all the rules expressed naturally in the contract. The main difference with a typical WAF ( like the mod_security OSS WAF that NGinx -and many others – is using) is that they take a signature-based approach to detect requests that may contain an attack. We are taking an approach where we help developers and security define the contract and the security constraints in the OAS file, and then enforce that at runtime.<\/span><\/p>\n

 <\/p>\n

With audit can we ensure that a schema has validation rules and with runtime we can throw away validators? Wondering if there is an way to somehow enforce owner validation (e.g. only owner can delete its own article)<\/b><\/h5>\n

I would never recommend to throw away any validation you are already doing in your code or stop doing validation. But an approach like ours ensures that the validation <\/span>is<\/b> indeed <\/span>done<\/b>, in a coherent way across all our APIs, independently of how they are implemented.<\/span><\/p>\n

 <\/p>\n

Wondering if there is a plan around graphQL movement and what can be done in this field?<\/b><\/h5>\n

Very hot topic too, where we will have to take a slightly different approach: we can still enforce that the verb\/path\/headers are correct, but we need specific rules for graphQL validation around depth, complexity and of course the list of properties that can be used in graphQL queries. We are at the beginning of this, and watch for news as we will soon deliver something along those lines!<\/span><\/p>\n

 <\/p>\n

Please correct me if I’m wrong in case of spec first development it might be a tool for infosec guys to ensure some rules being applied without asking engineers to do something.<\/b><\/h5>\n

Indeed! One of the key aspects of defining a proper OpenAPI first is that everything can then derive from it: implementation, testing, documentation, mocks, and in our case security. <\/span><\/p>\n

 <\/p>\n

Is it possible to add API specific custom rules in the audit tool, (example: path should be in specific format like only two levels, should not have special path etc..)?<\/b><\/h5>\n

Custom rules are indeed one of the most requested features, should be for nomenclature or security perspectives. This is something we are evaluating now, and looking at Q4 for delivery.<\/span><\/p>\n

 <\/p>\n

Do you see any performance issues related with runtime incoming request checks? <\/b><\/h5>\n

That\u2019s a valid concern – Which is why we have special IP in that domain to ensure we do not add more than a few ms (<1ms – 5 ms) latency to a transaction. Now, the good news is that if you are doing say JSON schema based validation of signed payloads in another gateway, we could actually make the whole transaction faster as you move that to our firewall…And as per our experience so far, make those API contracts 10x tighter and under control. So much better validation and faster.<\/span><\/p>\n

 <\/p>\n

If you are using a 3rd party OpenAPI (i.e. ServiceNow), how would you recommend auditing the API to better understand the security controls to integrate for your environment?<\/b><\/h5>\n

Definitely. Any 3rd party API has to give you a certain quality of service and insurance that they do a proper job to validate data and keep hackers at bay. Experience we have now is pretty consistent: if the JSON schemas in an OpenAPI file are loosely defined, chances are that there are no other, better defined, schemas anywhere, which implies the payload (request and responses) are poorly validated.<\/span><\/p>\n

 <\/p>\n

Will your approach work for severless models such as AWS API Gateway with Lambda code? (suppose api is swagger 3.0)?<\/b><\/h5>\n

Once exposed by the AWS API Gateway, we don\u2019t see the difference between Lambda or else (similarly, we have done a POC with Functions on Azure).<\/span><\/p>\n

<\/h5>\n

 <\/p>\n

<\/div>\n
\n
\n

 <\/p>\n

Try our security audit<\/a> for free. If you want to see the whole platform in action, request a demo now<\/a>!<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

You had questions, and we’ve got answers! Thank you for all the questions submitted on our webinar: “OpenAPI for API Security – Why guess when you know?!”\u00a0Below is the replay and all the answers to the questions that were asked. If you’d like more information please feel free to contact us.   Webinar: OpenAPI for […]<\/p>\n","protected":false},"author":13,"featured_media":11309,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"OpenAPI for API Security - Webinar Q&A","_seopress_titles_desc":"Questions and answers from our recent API security webinar on OpenAPI for API Security - Why guess when you know\r\n","_seopress_robots_index":"","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"disabled","ast-hfb-above-header-display":"disabled","ast-hfb-below-header-display":"disabled","ast-hfb-mobile-header-display":"disabled","site-post-title":"disabled","ast-breadcrumbs-content":"disabled","ast-featured-img":"disabled","footer-sml-layout":"disabled","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[6],"tags":[16,25,21],"class_list":["post-9103","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-api-security-training","tag-api-testing","tag-openapi-specification"],"_links":{"self":[{"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/posts\/9103"}],"collection":[{"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/comments?post=9103"}],"version-history":[{"count":0,"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/posts\/9103\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/media\/11309"}],"wp:attachment":[{"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/media?parent=9103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/categories?post=9103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging2022.42crunch.com\/wp-json\/wp\/v2\/tags?post=9103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}