\u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3(API)\u662f\u516c\u53f8\u4f01\u4e1a\u4e3a\u5ba2\u6237\u589e\u52a0\u5176\u4ea7\u54c1\u4ef7\u503c\u7684\u597d\u529e\u6cd5\u3002\u901a\u8fc7\u5c06\u6570\u5b57\u8d44\u4ea7\u548c\u670d\u52a1\u63d0\u4f9b\u7ed9\u66f4\u5e7f\u5927\u7684\u53d7\u4f17\uff0cAPI\u5df2\u7ecf\u53d1\u5c55\u6210\u4e86\u6838\u5fc3\u4e1a\u52a1\u91cd\u70b9\uff0c\u201cAPI\u7ecf\u6d4e\u201d\u90fd\u6210\u4e86\u5546\u4e1a\u884c\u8bdd\u4e2d\u7684\u56fa\u5b9a\u8bcd\u7ec4\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\nAPI\u9879\u76ee\u4e2d\uff0c\u65e2\u7ba1\u7406\u8bbf\u95ee\u53c8\u4fdd\u62a4\u7cfb\u7edf\uff0c\u540c\u65f6\u8fd8\u53c2\u4e0e\u6570\u5b57\u751f\u6001\u7cfb\u7edf\u7684\u5b89\u5168\u7b56\u7565\u5341\u5206\u91cd\u8981\u3002\u5e94\u7528\u7a0b\u5e8f\u4e3b\u7ba1\u5fc5\u987b\u8bbe\u8ba1\u3001\u6267\u884c\u5e76\u76d1\u7ba1\u6709\u6548API\u5b89\u5168\u7b56\u7565\uff0c\u5305\u62ecAPI\u7f51\u5173\u7684\u4f7f\u7528\u3002\u800c\u968f\u7740\u8be5\u9886\u57df\u7684\u53d1\u5c55\u548c\u4e1a\u5185\u73a9\u5bb6\u6570\u91cf\u7684\u589e\u52a0\uff0c\u4f01\u4e1a\u4e0d\u5b89\u5168API\u7684\u91c7\u7eb3\u6240\u5e26\u6765\u7684\u5371\u9669\u4e5f\u5728\u589e\u591a\u3002\u4e8b\u5b9e\u4e0a\uff0c\u52302022\u5e74\uff0cAPI\u6ee5\u7528\u5c06\u6210\u5bfc\u81f4\u4f01\u4e1aWeb\u5e94\u7528\u6570\u636e\u6cc4\u9732\u6700\u4e3a\u5e38\u89c1\u7684\u653b\u51fb\u65b9\u5f0f\u3002
\n\u4e3e\u4e2a\u4f8b\u5b50\uff0c2018\u5e7410\u6708\uff0cFacebook\u62ab\u9732\u906d\u9047\u91cd\u5927\u6570\u636e\u6cc4\u9732\uff0c\u5f71\u54cd5000\u591a\u4e07\u4e2a\u8d26\u6237\u3002\u653b\u51fb\u8005\u5229\u7528\u4e86Facebook\u5f00\u53d1\u8005API\u6536\u96c6\u53d7\u5f71\u54cd\u7528\u6237\u7684\u8d44\u6599\u4fe1\u606f\uff0c\u5305\u62ec\u59d3\u540d\u3001\u6027\u522b\u548c\u5bb6\u4e61\u3002\u8fdeFacebook\u8fd9\u79cd\u9996\u5c48\u4e00\u6307\u7684\u5927\u73a9\u5bb6\u90fd\u6ca1\u80fd\u5e78\u514dAPI\u5b89\u5168\u95ee\u9898\u3002
\nAPI\u5c31\u662f\u901a\u5f80\u6570\u636e\u548c\u5e94\u7528\u7a0b\u5e8f\u7684\u5927\u95e8\uff0c\u5728\u8fd9\u91cc\u878d\u5165\u5b89\u5168\u4e0e\u4fdd\u62a4Web\u5e94\u7528\u540c\u7b49\u91cd\u8981\u3002
\n\u4e3a\u5168\u9762\u4fdd\u62a4API\uff0c\u89e3\u51b3\u67b6\u6784\u3001DevOps\u548c\u751f\u4ea7\u4e2d\u7684\u5b89\u5168\u9700\u6c42\u662f\u91cd\u70b9\u3002\u8f6f\u4ef6\u5f00\u53d1\u751f\u547d\u5468\u671f(SDLC)\u4e2d\u5b89\u5168\u8bc4\u4f30\u7684\u62d0\u70b9\u53d6\u51b3\u4e8e\u5f00\u53d1\u56e2\u961f\u662f\u5728\u9057\u7559\u5e94\u7528\u4e2d\u542f\u7528API\uff0c\u8fd8\u662f\u6253\u9020\u65b0\u7684API\u4f18\u5148\u5e94\u7528\u3002\u867d\u7136\u8bc4\u4f30\u548c\u7f13\u89e3\u7684\u8981\u6c42\u5927\u90e8\u5206\u76f8\u540c\uff0c\u56e2\u961f\u8fd8\u662f\u9700\u8981\u505a\u5230\uff1a<\/p>\n
1. \u5bf9API\u6267\u884c\u52a8\u6001\u5e94\u7528\u5b89\u5168\u6d4b\u8bd5(DAST)\uff0c\u4e3a\u53d1\u73b0\u7684\u6f0f\u6d1e\u521b\u5efa\u7f13\u89e3\/\u4fee\u590d\u8ba1\u5212\u3002\r\n2. \u4e3aDevOps\u8fc7\u7a0b\u4e2d\u7684API\u5b9e\u73b0\u4ee3\u7801\u6267\u884c\u670d\u52a1\u7ec4\u4ef6\u67b6\u6784(SCA)\u548c\u9759\u6001\u5206\u6790\u5b89\u5168\u6d4b\u8bd5(SAST)\u5206\u6790\u3002\r\n3. \u5728\u4f01\u4e1a\u5e94\u7528\u67b6\u6784\u4e2d\u4f7f\u7528\u5b89\u5168\u8bbe\u8ba1\u6a21\u5f0f\u3002\u4e00\u4e9b\u5b89\u5168\u8bbe\u8ba1\u6a21\u5f0f\u6837\u4f8b\u5305\u62ec\uff1a\r\n\u81ea\u52a8\u7f16\u7801\u6a21\u677f\u4ee5\u9632\u6b62\u8de8\u7ad9\u811a\u672c(XSS)\u901a\u8fc7\u6a21\u677f\u4f7f\u7528\u8f93\u51fa\u7f16\u7801;\r\n\u91c7\u7528\u4e0a\u4e0b\u6587\u8f93\u5165\u9a8c\u8bc1\u4ee5\u9632\u6b62\u8f93\u5165\u653b\u51fb;\r\n\u8fd0\u7528\u540c\u6b65\u4ee4\u724c\u9632\u6b62\u5229\u7528\u4ee4\u724c\u7684\u8de8\u7ad9\u8bf7\u6c42\u4f2a\u9020(XSRF)\u653b\u51fb;\r\n\u91c7\u7528\u53d8\u91cf\u7ed1\u5b9a\u9632\u6b62\u5229\u7528\u5bf9\u8c61\u5173\u7cfb\u6620\u5c04\u5668(ORM)\u7684SQL\u6ce8\u5165;\r\n\u4f7f\u7528\u52a0\u5bc6\u5916\u89c2\u4ee5\u51cf\u5c11\u5bc6\u7801\u6f0f\u6d1e\r\n\u5728SDLC\u4e2d\u5b9e\u73b0\u5065\u58ee\u7684\u53cd\u9988\u73af\uff0c\u6839\u636e\u5404\u7c7b\u626b\u63cf\u7684\u53d1\u73b0\u505a\u51fa\u54cd\u5e94\u3002\r\n<\/pre>\n\u8fd9\u4e9b\u6b65\u9aa4\u786e\u4fddAPI\u4eab\u6709\u5b8c\u6574\u7684\u5b89\u5168\u8986\u76d6\uff0c\u56e2\u961f\u53ef\u4ee5\u5728\u95ee\u9898\u51fa\u73b0\u524d\u627e\u5230\u5e76\u4fee\u590d\u6f0f\u6d1e\u3002
\n\u4f60\u53ef\u80fd\u4f1a\u89c9\u5f97\u81ea\u5df1\u5df2\u7ecf\u6709\u4e86\u89e3\u51b3API\u5b89\u5168\u95ee\u9898\u7684\u7ba1\u7406\u5de5\u5177\uff0c\u4f46\u62e5\u6709\u8be5\u5de5\u5177\u8fd8\u53ea\u662f\u5b9e\u73b0API\u5b89\u5168\u7684\u7b2c\u4e00\u6b65\u3002API\u7ba1\u7406\u5de5\u5177\u63d0\u4f9b\u7684\u5b89\u5168\u7b56\u7565\u9002\u7528\u4e8e\u8fb9\u754c\uff0c\u4f46\u5bf9\u5448\u4e0aAPI\u7684\u4e1a\u52a1\u903b\u8f91\u5b89\u5168\u6beb\u65e0\u4f5c\u7528\u3002\u6211\u4eec\u7684\u76ee\u6807\u662f\u5728\u8f6f\u4ef6\u751f\u547d\u5468\u671f\u4e2d\u5d4c\u5165\u5e94\u7528\u5b89\u5168(DAST\u3001SAST\u548cSCA)\uff0c\u4f5c\u4e3a\u6574\u4f53API\u5b89\u5168\u7b56\u7565\u4e2d\u7684\u4e00\u90e8\u5206\uff0c\u7f16\u5199\u51fa\u5b89\u5168\u7531\u5185\u800c\u5916\u7684API\u3002
\n\u603b\u4e4b\uff0c\u5b89\u5168\u8bc4\u4f30\u7684\u7ed3\u679c\u5bf9\u51b2\u523a\u5468\u671f\u4e2d\u7684\u5f00\u53d1\u53ca\u5b89\u5168\u5229\u76ca\u76f8\u5173\u8005\u6765\u8bf4\u81f3\u5173\u91cd\u8981\uff0c\u800c\u4e0a\u8ff0\u6280\u672f\u53ef\u4ee5\u63d0\u5347\u516c\u53f8API\u7684\u5b8c\u6574\u6027\u548c\u91c7\u7eb3\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
API\u9879\u76ee\u4e2d\uff0c\u65e2\u7ba1\u7406\u8bbf\u95ee\u53c8\u4fdd\u62a4\u7cfb\u7edf\uff0c\u540c\u65f6\u8fd8\u53c2\u4e0e\u6570\u5b57\u751f\u6001\u7cfb\u7edf\u7684\u5b89\u5168\u7b56\u7565\u5341\u5206\u91cd\u8981\u3002\u5e94\u7528\u7a0b\u5e8f\u4e3b\u7ba1\u5fc5\u987b\u8bbe\u8ba1\u3001\u6267\u884c\u5e76\u76d1\u7ba1 […]<\/p>\n","protected":false},"author":1329,"featured_media":132883,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-132881","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/132881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1329"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=132881"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/132881\/revisions"}],"predecessor-version":[{"id":132884,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/132881\/revisions\/132884"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/132883"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=132881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=132881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=132881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}