{"id":32168,"date":"2020-01-17T10:00:32","date_gmt":"2020-01-17T01:00:32","guid":{"rendered":"https:\/\/www.creationline.com\/?p=32168"},"modified":"2020-01-17T08:54:57","modified_gmt":"2020-01-16T23:54:57","slug":"ebpf%e3%82%92%e6%8e%98%e3%82%8a%e4%b8%8b%e3%81%92%e3%82%8btracee%e3%82%92%e6%94%af%e3%81%88%e3%82%8b%e6%8a%80%e8%a1%93-aquasecurity-ebpf-tracee-%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168","title":{"rendered":"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9"},"content":{"rendered":"<p>\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672020\u5e741\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c<a href=\"https:\/\/blog.aquasec.com\/intro-ebpf-tracing-containers\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"> A Deep Dive into eBPF: The Technology that Powers Tracee <\/a>\u300d\u306e\u65e5\u672c\u8a9e\u7ffb\u8a33\u3067\u3059\u3002<\/p>\n<div style=\"text-align: center;\"><img decoding=\"async\" src=\"https:\/\/blog.aquasec.com\/hs-fs\/hubfs\/Blog\/2020%20Blog%20Images\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg?width=975&name=ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg\" alt=\"\" \/><\/div>\n<\/p>\n<h2>A Deep Dive into eBPF: The Technology that Powers Tracee<\/h2>\n<hr \/>\n<p>Aqua Security \u306e Tracee \u306f\u3001\u8efd\u91cf\u304b\u3064\u4f7f\u3044\u3084\u3059\u3044\u30b3\u30f3\u30c6\u30ca\u304a\u3088\u3073\u30b7\u30b9\u30c6\u30e0\u306e\u30c8\u30ec\u30fc\u30b9\u306b\u512a\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30c4\u30fc\u30eb\u3067\u3059\u3002Tracee \u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30bb\u30b9\u3092\u9664\u5916\u3059\u308b\u3053\u3068\u306a\u304f\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u306e\u307f\u751f\u6210\u3055\u308c\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u30c8\u30ec\u30fc\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Tracee \u306f eBPF \u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002eBPF \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u53ef\u89b3\u6e2c\u6027\u3092\u652f\u63f4\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f eBPF \u3068\u306f\u4f55\u304b\u3001\u305d\u308c\u3092\u4f7f\u7528\u3059\u308b\u7406\u7531\u53ca\u3073\u305d\u306e\u76ee\u7684\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u307e\u305f\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3092\u30c8\u30ec\u30fc\u30b9\u3059\u308b\u305f\u3081\u306b eBPF \u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u306e\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>Tracee \u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001Liz Rice \u304c\u516c\u958b\u3057\u305f\u3053\u306e<a href=\"https:\/\/blog.aquasec.com\/ebpf-tracing-containers\" rel=\"noopener noreferrer\" target=\"_blank\">\u30d6\u30ed\u30b0<\/a>\u6295\u7a3f\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u203b\u65e5\u672c\u8a9e\u7ffb\u8a33\u306f<a href=\"\/lab\/30664\" rel=\"noopener noreferrer\" target=\"_blank\">\u30b3\u30c1\u30e9<\/a>\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f eBPF \u3092\u6df1\u304f\u6398\u308a\u4e0b\u3052\u3066\u3053\u306e\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306e\u7528\u9014\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>eBPF \u3068\u306f<\/h3>\n<p>eBPF \u306f Extended Berkeley Packet Filter \u306e\u7565\u3067\u3059\u3002\u3053\u306e\u8a00\u8449\u304b\u3089\u5b9f\u969b\u306e\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306e\u80fd\u529b\u3092\u3042\u307e\u308a\u8868\u73fe\u3057\u304d\u308c\u3066\u3044\u307e\u305b\u3093\u3002<a href=\"http:\/\/www.brendangregg.com\/blog\/2019-01-01\/learn-ebpf-tracing.html\" rel=\"noopener noreferrer\" target=\"_blank\"> Brendan Gregg \u306e\u8a00\u8449<\/a>\u306f\u3053\u308c\u3092\u7c21\u6f54\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote>\n<p><i>\u300ceBPF \u304c Linux \u3078\u884c\u3046\u3053\u3068\u306f\u3001JavaScript \u304c HTML \u306b\u5bfe\u3057\u3066\u884c\u3046\u3053\u3068\u306b\u7b49\u3057\u3044\u300d\u3002<\/i><\/p>\n<\/blockquote>\n<p>eBPF \u304a\u3088\u3073\u30c8\u30ec\u30fc\u30b9\u5168\u822c\u306b\u95a2\u3059\u308b\u5f7c\u306e\u7814\u7a76\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>eBPF \u306f\u5143\u3005 BPF \u306e\u30a2\u30a4\u30c7\u30a2\u306b\u7531\u6765\u3057\u307e\u3059\u3002BPF\u306f\u6709\u7528\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d1\u30b1\u30c3\u30c8\u3092\u30ab\u30fc\u30cd\u30eb\u304b\u3089\u76f4\u63a5\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u30d1\u30b1\u30c3\u30c8\u3092\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u306b\u30b3\u30d4\u30fc\u305b\u305a\u306b\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bf\u30c3\u30d7\u3092\u4ecb\u3057\u3066\u9001\u308a\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.aquasec.com\/hs-fs\/hubfs\/Blog\/2020%20Blog%20Images\/Image1.png?width=755&name=Image1.png\" alt=\"\" \/><\/p>\n<p><center><i>BPF \u306e\u30a4\u30e1\u30fc\u30b8\u56f3<a href=\"https:\/\/www.tcpdump.org\/papers\/bpf-usenix93.pdf\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/www.tcpdump.org\/papers\/bpf-usenix93.pdf<\/a><\/i><\/center><\/p>\n<p>BPF \u306f\u4e0d\u8981\u306a\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u9664\u5916\u3057\u76e3\u8996\u3055\u308c\u3066\u3044\u308b\u30d1\u30b1\u30c3\u30c8\u306e\u307f\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u4e0d\u8981\u306a\u30d1\u30b1\u30c3\u30c8\u3092\u30e6\u30fc\u30b6\u30fc\u7a7a\u9593\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304b\u3089\u3075\u308b\u3044\u306b\u304b\u3051\u308b\u3088\u3046\u306a\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u3092\u524a\u6e1b\u3057\u307e\u3059\u3002<\/p>\n<p>BPF \u306f\u3069\u306e\u30d1\u30b1\u30c3\u30c8\u3092\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u304b\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u30ab\u30fc\u30cd\u30eb\u3067\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002eBPF \u306f\u3053\u306e\u6a5f\u80fd\u3092\u30d1\u30b1\u30c3\u30c8\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u4ee5\u4e0a\u306b\u5927\u5e45\u306b\u62e1\u5f35\u3057\u3001\u30ab\u30fc\u30cd\u30eb\u3067\u4efb\u610f\u306e eBPF \u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002eBPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d1\u30b1\u30c3\u30c8\u306e\u5230\u7740\u3060\u3051\u3067\u306a\u304f\u3001\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u3088\u3063\u3066\u30c8\u30ea\u30ac\u30fc\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u300ckprobe\u300d\u30a4\u30d9\u30f3\u30c8\u306b\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30ab\u30fc\u30cd\u30eb\u95a2\u6570\u306e\u958b\u59cb\u6642\u306b eBPF \u30b3\u30fc\u30c9\u3092\u30c8\u30ea\u30ac\u30fc\u3067\u304d\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u3067\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001eBPF \u30b3\u30fc\u30c9\u306f\u975e\u5e38\u306b\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u767a\u63ee\u3057\u307e\u3059\u3002<\/p>\n<p>\u521d\u671f\u306e\u9803 eBPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u30d0\u30a4\u30c8\u30b3\u30fc\u30c9\u3092\u624b\u52d5\u3067\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3084\u3059\u304f\u975e\u5e38\u306b\u9aa8\u306e\u6298\u308c\u308b\u4f5c\u696d\u3067\u3059\u3002\u5e78\u3044\u306a\u3053\u3068\u306b BCC(BPF Compiler Collection)\u306a\u3069\u306e\u30c4\u30fc\u30eb\u30ad\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001Go \u3084 Python \u306a\u3069\u306e\u30e2\u30c0\u30f3\u306a\u8a00\u8a9e\u3067 eBPF \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u3053\u306e\u30d6\u30ed\u30b0\u306e\u5f8c\u534a\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h3>\u306a\u305c eBPF \u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b\u306e\u304b<\/h3>\n<p>eBPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3055\u307e\u3056\u307e\u306a\u30a4\u30d9\u30f3\u30c8\u306b\u3088\u3063\u3066\u30c8\u30ea\u30ac\u30fc\u3067\u304d\u308b\u305f\u3081\u3001<a href=\"https:\/\/github.com\/aquasecurity\/tracee\" rel=\"noopener noreferrer\" target=\"_blank\">Tracee <\/a>\u306a\u3069\u306e eBPF \u30d9\u30fc\u30b9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30b7\u30b9\u30c6\u30e0\u3067\u4f55\u304c\u8d77\u3053\u3063\u3066\u3044\u308b\u304b\u3092\u767a\u898b\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u540c\u69d8\u306e\u3053\u3068\u3092\u884c\u3046\u65e2\u5b58\u306e\u30c4\u30fc\u30eb\u3068\u3057\u3066\u300cps\u300d\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u30ad\u30e3\u30c3\u30c1\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u7c92\u5ea6\u304c\u7570\u306a\u308a\u307e\u3059\u3002\u76e3\u8996\u30c4\u30fc\u30eb\u306e\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u9593\u9694\u3088\u308a\u3082\u5b9f\u884c\u6642\u9593\u304c\u77ed\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u691c\u51fa\u3055\u308c\u307e\u305b\u3093\u3002eBPF \u30b3\u30fc\u30c9\u306f\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u30d9\u30fc\u30b9\u3067\u306f\u306a\u304f\u30a4\u30d9\u30f3\u30c8\u30c8\u30ea\u30ac\u30fc\u3067\u3042\u308a\u3001\u30ab\u30fc\u30cd\u30eb\u3067\u975e\u5e38\u306b\u9ad8\u901f\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001eBPF \u30d9\u30fc\u30b9\u306e\u53ef\u89b3\u6e2c\u30c4\u30fc\u30eb\u306f\u5f93\u6765\u306e\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u624b\u6bb5\u3088\u308a\u3082\u306f\u308b\u304b\u306b\u6b63\u78ba\u3067\u3059\u3002<\/p>\n<p>eBPF \u306e\u5f37\u307f\u306e\u4f8b\u306f\u91cd\u8981\u306a\u30b7\u30b9\u30c6\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f\u306a\u3069\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7570\u5e38\u306a\u52d5\u4f5c\u3092\u8b58\u5225\u3059\u308b\u3053\u3068\u306b\u3088\u308b\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u306e\u76e3\u8996\u3067\u3059\u3002eBPF \u30b3\u30fc\u30c9\u306f\u30d5\u30a1\u30a4\u30eb\u30a4\u30d9\u30f3\u30c8\u306b\u5fdc\u3058\u3066\u5b9f\u884c\u3055\u308c\u3001\u671f\u5f85\u3055\u308c\u305f\u52d5\u4f5c\u304b\u5426\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>eBPF \u3067\u3067\u304d\u308b\u3053\u3068<\/h3>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u7528\u306b execve() \u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3092\u30c8\u30ec\u30fc\u30b9\u3059\u308b\u3053\u3068\u3067 eBPF \u306e\u6a5f\u80fd\u304c\u5206\u304b\u308b\u3088\u3046\u306a\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><i>execve<\/i>() \u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u53d6\u308d\u3046\u3068\u3059\u308b\u8a66\u307f\u3092\u30c8\u30ea\u30ac\u30fc\u3057\u307e\u3059\u3002\u79c1\u304c\u66f8\u3044\u305f eBPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306f execve() \u3092\u547c\u3073\u51fa\u3059\u3059\u3079\u3066\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u76e3\u8996\u3057\u3001\u305d\u308c\u3089\u306b\u3064\u3044\u3066\u5831\u544a\u3057\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u304b\u3089\u3001\u30b7\u30b9\u30c6\u30e0\u3067\u5b9f\u884c\u3055\u308c\u308b\u3059\u3079\u3066\u306e\u65b0\u3057\u3044\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><i>execve<\/i>() \u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u306e\u76e3\u8996\u306f\u3001\u4e88\u671f\u3057\u306a\u3044\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u51fa\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u30b3\u30f3\u30c6\u30ca\u5185\u304b\u3089\u30b7\u30a7\u30eb\u3092\u751f\u6210\u3059\u308b <i>execve<\/i>() \u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3092\u76e3\u8996\u3059\u308b\u3068\u3057\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u306f\u3001\u901a\u5e38\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u306e\u3088\u3046\u306a\u77ed\u671f\u9593\u306e\u30b5\u30fc\u30d3\u30b9\u7528\u9014\u3068\u3057\u3066\u5229\u7528\u3055\u308c\u307e\u3059\u3002\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30b7\u30a7\u30eb\u306e\u751f\u6210\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u81ea\u8eab\u304c\u884c\u3046\u3053\u3068\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u653b\u6483\u8005\u304c\u30b7\u30b9\u30c6\u30e0\u3092\u4e57\u3063\u53d6\u308d\u3046\u3068\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u8ad6\u3088\u308a\u8a3c\u62e0<\/h3>\n<p>BPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30ab\u30fc\u30cd\u30eb\u30b9\u30da\u30fc\u30b9\u3068\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u306e2\u3064\u306e\u90e8\u5206\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u30b9\u30da\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u95a2\u9023\u3059\u308b\u30a4\u30d9\u30f3\u30c8\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u3001\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30ab\u30fc\u30cd\u30eb\u30b9\u30da\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u53d6\u5f97\u3057\u3001\u3055\u3089\u306b\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u305d\u308c\u3089\u3092\u89e3\u6790\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u6700\u521d\u306b\u30ab\u30fc\u30cd\u30eb\u30b9\u30da\u30fc\u30b9\u30b3\u30fc\u30c9\u3001\u30ab\u30fc\u30cd\u30eb\u5185\u3067\u306e\u5b9f\u884c\u65b9\u6cd5\u3001\u304a\u3088\u3073\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u6b21\u306b\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u30b3\u30fc\u30c9\u3001\u53d7\u4fe1\u3057\u305f\u30a4\u30d9\u30f3\u30c8\u3092\u3069\u306e\u3088\u3046\u306b\u89e3\u6790\u3067\u304d\u308b\u304b\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u958b\u767a\u3092\u652f\u63f4\u3059\u308b\u305f\u3081\u306b\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306f BCC \u306a\u3069\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u8003\u6848\u3057\u307e\u3057\u305f\u3002\u6b21\u306e\u3088\u3046\u306a\u3059\u3079\u3066\u306e execve \u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30eb\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3059\u308b\u305f\u3081\u306b\u3001BCC \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u767b\u9332\u3067\u304d\u307e\u3059\u3002<\/p>\n<table border=\"1\" cellpadding=\"4\" style=\"width: 850px; border-color: #FFFFFF; border-style: solid; border-collapse: collapse; table-layout: fixed;\" class=\"hs-table-align-center\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\">\n<p style=\"text-align: left;\"><span style=\"font-family: 'courier new', courier; color: #37761d;\">int syscall__execve(struct pt_regs *ctx,<\/span><br \/><span style=\"font-family: 'courier new', courier; color: #37761d;\">&nbsp;&nbsp;&nbsp; const char __user *filename,<\/span><br \/><span style=\"font-family: 'courier new', courier; color: #37761d;\">&nbsp;&nbsp;&nbsp; const char __user *const __user *__argv,<\/span><br \/><span style=\"font-family: 'courier new', courier; color: #37761d;\">&nbsp;&nbsp;&nbsp; const char __user *const __user *__envp)<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6b21\u306e\u95a2\u6570\u306f BCC \u306e\u30b7\u30b9\u30c6\u30e0\u30b3\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u3066\u5b9f\u884c\u3055\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u307e\u3059\u3002<\/p>\n<table border=\"1\" cellpadding=\"4\" style=\"width: 850px; border-color: #ffffff; border-style: solid; border-collapse: collapse; table-layout: fixed; height: 32px;\">\n<tbody>\n<tr style=\"height: 32px;\">\n<td style=\"width: 849px; background-color: #eeeeee; height: 32px;\"><span style=\"font-family: 'courier new', courier; color: #37761d;\">bpf_get_current_comm(&amp;data.comm, sizeof(data.comm));<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u307e\u305f\u30b3\u30de\u30f3\u30c9\u540d\u30fb\u30ea\u30bf\u30fc\u30f3\u30b3\u30fc\u30c9\u30fb\u89aa UID\u30fb\u30d7\u30ed\u30bb\u30b9 UID \u306a\u3069\u306e\u30a4\u30d9\u30f3\u30c8\u306e\u8a73\u7d30\u3092\u3001\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u8aad\u307f\u53d6\u308c\u308bperf\u306e\u30ea\u30f3\u30b0\u30d0\u30c3\u30d5\u30a1\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<table border=\"1\" cellpadding=\"4\" style=\"width: 850px; border-color: #ffffff; border-style: solid; border-collapse: collapse; table-layout: fixed; height: 31px;\">\n<tbody>\n<tr style=\"height: 31px;\">\n<td style=\"width: 849px; background-color: #eeeeee; height: 31px;\"><span style=\"font-family: 'courier new', courier; color: #37761d;\">BPF_PERF_OUTPUT(events);<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u540c\u69d8\u306b\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/github.com\/iovisor\/gobpf\" rel=\"noopener noreferrer\" target=\"_blank\"> BCC \u7528\u306e Golang bindings<\/a>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002Go \u8a00\u8a9e\u74b0\u5883\u3092\u6e96\u5099\u3057\u3066 BCC \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<table border=\"1\" cellpadding=\"4\" style=\"width: 100%; border-color: #FFFFFF; border-style: solid; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #ff00ff;\"><em>type <\/em><\/span><span style=\"color: #f1c233;\">Snoopy<\/span> <span style=\"color: #ff00ff;\"><em>struct <\/em><\/span>{<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; <span style=\"color: #e06666;\">m<\/span> *bpf.<span style=\"color: #37761d;\">Module<\/span><\/span><br \/><span style=\"font-family: 'courier new', courier;\">}<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #ff00ff;\"><em>func <\/em><\/span><span style=\"color: #3d85c6;\">main<\/span>() {<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; s := <span style=\"color: #37761d;\">Snoopy<\/span>{<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m: bpf.<span style=\"color: #783f04;\">NewModule<\/span>(<span style=\"color: #e69138;\">source<\/span>, []<span style=\"color: #ff00ff;\">string<\/span>{}),<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; }<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>defer <\/em><\/span>s.<span style=\"color: #e06666;\">m<\/span>.<span style=\"color: #783f04;\">Close<\/span>()<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>if <\/em><\/span>err := s.<span style=\"color: #783f04;\">LoadAndAttachProbes<\/span>(); err != nil {<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log.<span style=\"color: #783f04;\">Fatalf<\/span>(<span style=\"color: #37761d;\">\"failed to load and attach probes:<\/span> %s<span style=\"color: #37761d;\">\"<\/span>, err)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; }<\/span><br \/><span style=\"font-family: 'courier new', courier;\">}<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u3067\u306f\u65b0\u3057\u3044\u69cb\u9020\u4f53\u3092\u4f5c\u6210\u3057\u3001bpf \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5185\u90e8\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3057\u307e\u3059\u3002\u30ab\u30fc\u30cd\u30eb\u3067\u5b9f\u884c\u3055\u308c\u308b BPF \u30b3\u30fc\u30c9\u3092\u4fdd\u6301\u3059\u308b <i>source<\/i> \u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3057\u307e\u3059\u3002\u6b21\u306b <i>LoadAndAttachProbes<\/i>() \u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002probe \u306b\u3064\u3044\u3066\u5c11\u3057\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><span style=\"background-color:#f5f5f5\"><br \/>\n<b>Probe<\/b><br \/>\n<\/span><\/p>\n<ul>\n<li>probe \u306f BPF \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u63a5\u7d9a\u3067\u304d\u308b\u30ab\u30fc\u30cd\u30eb\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u62e1\u5f35\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002\n<li>probe \u306f\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30b5\u30d6\u30b7\u30b9\u30c6\u30e0\u306b\u95a2\u3059\u308b\u60c5\u5831\u3092\u53ce\u96c6\u304a\u3088\u3073\u9001\u4fe1\u3059\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\n<li>BPF \u306b\u306f\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u306e probe \u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u4f7f\u7528\u3059\u308b\u306e\u306f kprobe \u3068 kretprobe \u3067\u3059\u3002\n<\/ul>\n<p>\u305d\u308c\u305e\u308c\u4f55\u3092\u610f\u5473\u3057\u4f55\u304c\u3067\u304d\u308b\u304b\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><span style=\"background-color:#f5f5f5\"><br \/>\n<b>kprobe<\/b><br \/>\n<\/span><\/p>\n<p>kprobe \u306f <i>execve<\/i>() \u306e\u3088\u3046\u306a\u30ab\u30fc\u30cd\u30eb\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u62c5\u5f53\u3059\u308b probe \u306e\u7279\u5225\u306a\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3067\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f kprobe \u306f <i>syscall__execve<\/i> \u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"background-color:#f5f5f5\"><br \/>\n<b>kretprobe<\/b><br \/>\n<\/span><\/p>\n<p>kretprobe \u306f\u30ab\u30fc\u30cd\u30eb\u95a2\u6570\u306e\u623b\u308a\u306e\u30c8\u30ec\u30fc\u30b9\u3092\u62c5\u5f53\u3059\u308b probe \u306e\u7279\u5225\u306a\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3067\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f <i>do_ret_sys_execve<\/i> \u306b\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>LoadAndAttachProbes() \u95a2\u6570\u3092\u898b\u3066\u65b0\u3057\u3044 BPF \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u30ab\u30fc\u30cd\u30eb\u306b\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<table border=\"1\" cellpadding=\"4\" style=\"width: 100%; border-color: #FFFFFF; border-style: solid; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #ff00ff;\"><em>func <\/em><\/span>(<span style=\"color: #e69138;\">s<\/span> <span style=\"color: #783f04;\">Snoopy<\/span>) <span style=\"color: #3d85c6;\">LoadAndAttachProbes<\/span>() <span style=\"color: #ff00ff;\">error<\/span> {<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; fnName := bpf.<span style=\"color: #783f04;\">GetSyscallFnName<\/span>(<span style=\"color: #37761d;\">\"execve\"<\/span>)<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; kprobe, err := <span style=\"color: #e69138;\">s<\/span>.<span style=\"color: #e06666;\">m<\/span>.<span style=\"color: #783f04;\">LoadKprobe<\/span>(<span style=\"color: #37761d;\">\"syscall__execve\"<\/span>)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>if <\/em><\/span>err != nil {<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log.<span style=\"color: #783f04;\">Printf<\/span>(<span style=\"color: #37761d;\">\"failed to load syscall__execve:<\/span> %s<span style=\"color: #37761d;\">\"<\/span>, err)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>return <\/em><\/span>err<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; }<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; <em><span style=\"color: #ff00ff;\">if<\/span> <\/em>err := <span style=\"color: #e69138;\">s<\/span>.<span style=\"color: #e06666;\">m<\/span>.<span style=\"color: #783f04;\">AttachKprobe<\/span>(fnName, kprobe, -1); err != nil {<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log.<span style=\"color: #783f04;\">Printf<\/span>(<span style=\"color: #37761d;\">\"failed to attach syscall__execve:<\/span> %s<span style=\"color: #37761d;\">\"<\/span>, err)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>return <\/em><\/span>err<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; }<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; kretprobe, err := <span style=\"color: #e69138;\">s<\/span>.<span style=\"color: #e06666;\">m<\/span>.LoadKprobe(\"do_ret_sys_execve\")<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>if <\/em><\/span>err != nil {<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log.<span style=\"color: #783f04;\">Printf<\/span>(<span style=\"color: #37761d;\">\"failed to load do_ret_sys_execve:<\/span> %s<span style=\"color: #37761d;\">\"<\/span>, err)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>return <\/em><\/span>err<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; }<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>if <\/em><\/span>err := <span style=\"color: #e69138;\">s<\/span>.<span style=\"color: #e06666;\">m<\/span>.<span style=\"color: #783f04;\">AttachKretprobe<\/span>(fnName, kretprobe, -<span style=\"color: #e69138;\">1<\/span>); err != nil {<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log.<span style=\"color: #783f04;\">Printf<\/span>(<span style=\"color: #37761d;\">\"failed to attach do_ret_sys_execve:<\/span> %s<span style=\"color: #37761d;\">\"<\/span>, err)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>return <\/em><\/span>err<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; }<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>return <\/em><\/span>nil<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u521d\u306f\u5c11\u3057\u8907\u96d1\u306b\u898b\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4e0a\u8a18\u306e\u30b3\u30fc\u30c9\u30b9\u30cb\u30da\u30c3\u30c8\u306f kprobe \u3068 kretprobe \u3092\u30ed\u30fc\u30c9\u3057\u3066 BPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u30a2\u30bf\u30c3\u30c1\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u6b63\u5e38\u306b\u30ed\u30fc\u30c9\u3055\u308c\u305f\u3089\u6b8b\u308a\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<table border=\"1\" cellpadding=\"4\" style=\"width: 100%; border-color: #FFFFFF; border-style: solid; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\"><span style=\"font-family: 'courier new', courier;\">table := bpf.<span style=\"color: #783f04;\">NewTable<\/span>(s.<span style=\"color: #e06666;\">m<\/span>.<span style=\"color: #783f04;\">TableId<\/span>(<span style=\"color: #37761d;\">\"events\"<\/span>), s.<span style=\"color: #e06666;\">m<\/span>)<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier;\">perfMap, err := bpf.<span style=\"color: #783f04;\">InitPerfMap<\/span>(table, s.<span style=\"color: #e06666;\">dataChannel<\/span>)<\/span><br \/><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #ff00ff;\"><em>if <\/em><\/span>err != nil {&nbsp;<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; log.<span style=\"color: #783f04;\">Fatalf<\/span>(<span style=\"color: #37761d;\">\"failed to init perf map:<\/span> %s<span style=\"color: #37761d;\">\"<\/span>, err)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">}<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5148\u3078\u9032\u3080\u524d\u306b\u3001 BPF \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u306e <i>tables<\/i> \u306e\u610f\u5473\u3092\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>BPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306f maps \u3092\u4f7f\u7528\u3057\u3066\u30e6\u30fc\u30b6\u30b9\u30da\u30fc\u30b9\u3068\u30ab\u30fc\u30cd\u30eb\u30b9\u30da\u30fc\u30b9\u306e\u9593\u3067\u901a\u4fe1\u3057\u307e\u3059\u3002maps \u306f\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u306b\u4f7f\u7528\u3055\u308c\u308b\u4e00\u822c\u7684\u306a key-value \u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f Hash Table \u306f BPF maps \u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u30bf\u30a4\u30d7 Hash Table \u306e BPF map \u3092\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3057\u3001event \u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3059\u3079\u3066\u306e event \u304c\u53d7\u4fe1\u3055\u308c\u308b data channel \u3082\u6e21\u3057\u307e\u3059\u3002\u305d\u308c\u3089\u3092\u8aad\u307f\u53d6\u308b\u306b\u306f goroutine \u3067\u6b21\u306e\u3088\u3046\u306b event loop \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<table border=\"1\" cellpadding=\"4\" style=\"width: 100%; border-color: #FFFFFF; border-style: solid; border-collapse: collapse; table-layout: fixed;\">\n<tbody>\n<tr>\n<td style=\"width: 100%; background-color: #eeeeee;\"><span style=\"font-family: 'courier new', courier;\"><span style=\"color: #ff00ff;\"><em>func <\/em><\/span>(<span style=\"color: #e69138;\">s<\/span> <span style=\"color: #69a84f;\">Snoopy<\/span>) <span style=\"color: #3d85c6;\">eventLoop<\/span>() {<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>for <\/em><\/span>{<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; data := &lt;-<span style=\"color: #e69138;\">s<\/span>.<span style=\"color: #e06666;\">dataChannel<\/span><\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>var <\/em><\/span>event execveEvent<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; err := binary.<span style=\"color: #783f04;\">Read<\/span>(bytes.<span style=\"color: #783f04;\">NewBuffer<\/span>(data), bpf.<span style=\"color: #783f04;\">GetHostByteOrder<\/span>(), &amp;event)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #ff00ff;\"><em>if <\/em><\/span>err != nil {<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log.<span style=\"color: #783f04;\">Printf<\/span>(<span style=\"color: #69a84f;\">\"failed to decode received data:<\/span> %s<span style=\"color: #69a84f;\">\"<\/span>, err)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <em><span style=\"color: #ff00ff;\">break<\/span><br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/em>}<\/span><\/p>\n<p><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p := <span style=\"color: #69a84f;\">eventPayload<\/span>{<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #e06666;\"><em>Comm<\/em><\/span>:&nbsp;&nbsp; C.GoString((*C.char)(unsafe.<span style=\"color: #69a84f;\">Pointer<\/span>(&amp;event.<span style=\"color: #e06666;\"><em>Comm<\/em><\/span>))),<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #e06666;\"><em>Pid<\/em><\/span>:&nbsp;&nbsp;&nbsp; event.<span style=\"color: #e06666;\"><em>Pid<\/em><\/span>,<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #e06666;\"><em>Ppid<\/em><\/span>:&nbsp;&nbsp; strconv.<span style=\"color: #783f04;\">FormatUint<\/span>(event.<span style=\"color: #e06666;\"><em>Ppid<\/em><\/span>, <span style=\"color: #e69138;\">10<\/span>),<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color: #e06666;\"><em>RetVal<\/em><\/span>: event.<span style=\"color: #e06666;\"><em>RetVal<\/em><\/span>,<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; out.<span style=\"color: #69a84f;\">printLine<\/span>(p)<\/span><br \/><span style=\"font-family: 'courier new', courier;\">&nbsp;&nbsp; }<\/span><br \/><span style=\"font-family: 'courier new', courier;\">}<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u3053\u3067\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f <i>dataChannel<\/i> \u304b\u3089\u8aad\u307f\u53d6\u308a\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u7740\u4fe1\u30d0\u30a4\u30c8\u306e <i>binary.Read<\/i>() \u64cd\u4f5c\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u30d0\u30a4\u30c8\u30d0\u30c3\u30d5\u30a1\u3092 <i>eventPayload<\/i> \u306b\u5909\u63db\u3057\u3066\u6a19\u6e96\u51fa\u529b\u3057\u307e\u3059\u3002\u3067\u306f\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u4f55\u304c\u8d77\u3053\u308b\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><b>\u6ce8<\/b>\uff1a\u30b9\u30fc\u30d1\u30fc\u30e6\u30fc\u30b6\u7279\u6a29\u3067 BPF \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><span style=\"background-color:#f5f5f5\"># go run main.go<\/span><\/p>\n<p>\u524d\u306b\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u751f\u6210\u3055\u308c\u308b\u5404\u30b7\u30a7\u30eb\u3092\u76e3\u8996\u3057\u307e\u3059\u3002\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067 nginx \u30b3\u30f3\u30c6\u30ca\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><span style=\"background-color:#f5f5f5\"><br \/>\n$ docker run -d nginx<br \/>\n<\/span><\/p>\n<p>\u6b21\u306b bash \u3067 nginx \u30b3\u30f3\u30c6\u30ca\u306b\u5165\u308a\u3001 sh \u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><span style=\"background-color:#f5f5f5\"><br \/>\n$ docker exec -it 9e02dfdeb94f \/bin\/bash<br \/>\n$ sh<br \/>\n<\/span><\/p>\n<p>\u65b0\u3057\u3044\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306e BPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u51fa\u529b\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/999.png\" alt=\"\" width=\"1266\" height=\"224\" class=\"alignnone size-full wp-image-32187\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/999.png 1266w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/999-360x64.png 360w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/999-768x136.png 768w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/999-1024x181.png 1024w\" sizes=\"auto, (max-width: 1266px) 100vw, 1266px\" \/><\/p>\n<p>sh \u30b3\u30de\u30f3\u30c9\u306e\u89aa\u30d7\u30ed\u30bb\u30b9 ID(PPID)\u306f bash \u30b3\u30de\u30f3\u30c9\u306e\u30d7\u30ed\u30bb\u30b9 ID(PID)\u3068\u4e00\u81f4\u3057\u307e\u3059\u304c\u3001bash \u30b3\u30de\u30f3\u30c9\u306e PPID \u306f docker \u30b3\u30de\u30f3\u30c9\u306e PID \u3068\u4e00\u81f4\u3057\u307e\u305b\u3093\u3002\u3053\u308c\u306f docker \u30b3\u30de\u30f3\u30c9\u304c Docker \u30c7\u30fc\u30e2\u30f3\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6295\u3052\u3066\u3001Docker \u30c7\u30fc\u30e2\u30f3\u304c\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u30b7\u30a7\u30eb\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<hr \/>\n<p>\u4e0a\u8a18\u306e\u4f8b\u304b\u3089\u308f\u304b\u308b\u3088\u3046\u306b eBPF \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30b7\u30b9\u30c6\u30e0\u76e3\u8996\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u975e\u5e38\u306b\u5f37\u529b\u306a\u57fa\u76e4\u3067\u3059\u3002\u6570\u884c\u306e\u30b3\u30fc\u30c9\u3067\u30b7\u30b9\u30c6\u30e0\u3092\u8a08\u6e2c\u3057\u3001\u5185\u90e8\u3067\u4f55\u304c\u8d77\u3053\u3063\u3066\u3044\u308b\u304b\u3092\u8ffd\u8de1\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c4\u30fc\u30eb\u306b\u3001 eBPF \u30d9\u30fc\u30b9\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u3059\u308b\u969b\u306b\u306f\u6ce8\u610f\u3059\u3079\u304d\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u30c4\u30fc\u30eb\u958b\u59cb\u5f8c\u306e\u3001\u65b0\u3057\u3044\u30d7\u30ed\u30bb\u30b9\u307e\u305f\u306f\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u30a4\u30d9\u30f3\u30c8\u306e\u958b\u59cb\u3092\u76e3\u8996\u3059\u308b\u3053\u3068\u3057\u304b\u3067\u304d\u306a\u3044\u3053\u3068\u3067\u3059\u3002\u65b0\u3057\u3044\u30d7\u30ed\u30bb\u30b9\u304c\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u9632\u3050\u3053\u3068\u306f\u51fa\u6765\u307e\u305b\u3093\u3002\u3053\u308c\u3089\u306e\u76e3\u8996\u7d50\u679c\u306f\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u304c\u4e88\u671f\u3057\u306a\u3044\u65b9\u6cd5\u3067\u52d5\u4f5c\u3059\u308b\u5834\u5408\u306b\u901a\u77e5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u305d\u308c\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30c8\u30ea\u30ac\u30fc\u3057\u305f\u308a\u3001\u30d7\u30ed\u30bb\u30b9\u3084\u30b3\u30f3\u30c6\u30ca\u3092\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3053\u306e\u4e88\u671f\u3057\u306a\u3044\u52d5\u4f5c\u304c\u60aa\u610f\u306e\u3042\u308b\u64cd\u4f5c\u3067\u3042\u308b\u5834\u5408\u3001\u3059\u3067\u306b\u88ab\u5bb3\u3092\u53d7\u3051\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u9632\u6b62\u6a5f\u80fd\u306e\u6b20\u5982\u306f eBPF \u30d9\u30fc\u30b9\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30c4\u30fc\u30eb\u306e\u907f\u3051\u3089\u308c\u306a\u3044\u6b20\u70b9\u3067\u3059\u3002\u5bfe\u7167\u7684\u306b\u3001Aqua Cloud Native Security Platform \u306f\u5f37\u529b\u306a\u72ec\u81ea\u6280\u8853\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002Aqua CSP\u306f\u3001\u4e88\u671f\u3057\u306a\u3044\u52d5\u4f5c\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b\u901a\u77e5\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001(Drift Prevention \u6a5f\u80fd\u306b\u3088\u3063\u3066)\u305d\u306e\u767a\u751f\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><!--HubSpot Call-to-Action Code --><span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-905ae21c-7845-48bd-83d6-bf8e5e415ace\"><span class=\"hs-cta-node hs-cta-905ae21c-7845-48bd-83d6-bf8e5e415ace\" id=\"hs-cta-905ae21c-7845-48bd-83d6-bf8e5e415ace\"><!--[if lte IE 8]>\n\n<div id=\"hs-cta-ie-element\"><\/div>\n\n<![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/1665891\/905ae21c-7845-48bd-83d6-bf8e5e415ace\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-905ae21c-7845-48bd-83d6-bf8e5e415ace\" style=\"border-width:0px;margin: 0 auto; display: block; margin-top: 20px; margin-bottom: 20px\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/1665891\/905ae21c-7845-48bd-83d6-bf8e5e415ace.png\" alt=\"New call-to-action\" align=\"middle\"><\/a><\/span><script charset=\"utf-8\" src=\"\/hs\/cta\/cta\/current.js\"><\/script><script type=\"text\/javascript\"> hbspt.cta._relativeUrls=true;hbspt.cta.load(1665891, '905ae21c-7845-48bd-83d6-bf8e5e415ace', {}); <\/script><\/span><!-- end HubSpot Call-to-Action Code --><\/p>\n<p><\/span><\/p>\n\n\t\t<!--HubSpot Call-to-Action Code -->\n\t\t<span class=\"hs-cta-wrapper\" id=\"hs-cta-wrapper-3a13195e-48f8-474a-ac0e-d21ac0a01291\">\n\t\t<span class=\"hs-cta-node hs-cta-3a13195e-48f8-474a-ac0e-d21ac0a01291\" id=\"3a13195e-48f8-474a-ac0e-d21ac0a01291\">\n\t\t<!--[if lte IE 8]>\n\t\t<div id=\"hs-cta-ie-element\"><\/div>\n\t\t<![endif]-->\n\t\t<a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/6168413\/3a13195e-48f8-474a-ac0e-d21ac0a01291\" >\n\t\t<img decoding=\"async\" class=\"hs-cta-img\" id=\"hs-cta-img-3a13195e-48f8-474a-ac0e-d21ac0a01291\" style=\"border-width:0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/6168413\/3a13195e-48f8-474a-ac0e-d21ac0a01291.png\"  alt=\"New call-to-action\"\/>\n\t\t<\/a>\n\t\t<\/span>\n\t\t<script charset=\"utf-8\" src=\"\/\/js.hubspot.com\/cta\/current.js\"><\/script>\n\t\t<script>\n\t\thbspt.cta.load(6168413, '3a13195e-48f8-474a-ac0e-d21ac0a01291', {});\n\t\t<\/script>\n\t\t<\/span>\n\t\t<!-- end HubSpot Call-to-Action Code -->\n\t\t\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672020\u5e741\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c A Deep Dive into eBPF: The Technology that Powers Tracee \u300d\u306e\u65e5\u672c\u8a9e\u7ffb\u8a33\u3067 [&#8230;]<\/p>\n","protected":false},"author":56,"featured_media":32171,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[176],"tags":[],"class_list":["post-32168","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aquasecurity"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672020\u5e741\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c A Deep Dive into eBPF: The\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672020\u5e741\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c A Deep Dive into eBPF: The\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-17T01:00:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"650\" \/>\n\t<meta property=\"og:image:height\" content=\"315\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kent Magruder\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kent Magruder\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168\"},\"author\":{\"name\":\"Kent Magruder\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/2dfcdde19e3b7cb7da7c9ae23e1b7717\"},\"headline\":\"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\",\"datePublished\":\"2020-01-17T01:00:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168\"},\"wordCount\":687,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg\",\"articleSection\":[\"AquaSecurity\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168\",\"name\":\"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg\",\"datePublished\":\"2020-01-17T01:00:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/2dfcdde19e3b7cb7da7c9ae23e1b7717\"},\"description\":\"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672020\u5e741\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c A Deep Dive into eBPF: The\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg\",\"width\":650,\"height\":315},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\\\/32168#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"AquaSecurity\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cloudnative\\\/aquasecurity\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/2dfcdde19e3b7cb7da7c9ae23e1b7717\",\"name\":\"Kent Magruder\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/avatar.png\",\"caption\":\"Kent Magruder\"},\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/k-magruder\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672020\u5e741\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c A Deep Dive into eBPF: The","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168","og_locale":"ja_JP","og_type":"article","og_title":"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672020\u5e741\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c A Deep Dive into eBPF: The","og_url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2020-01-17T01:00:32+00:00","og_image":[{"width":650,"height":315,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg","type":"image\/jpeg"}],"author":"Kent Magruder","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"Kent Magruder","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168"},"author":{"name":"Kent Magruder","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/2dfcdde19e3b7cb7da7c9ae23e1b7717"},"headline":"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9","datePublished":"2020-01-17T01:00:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168"},"wordCount":687,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg","articleSection":["AquaSecurity"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168","url":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168","name":"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9 - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg","datePublished":"2020-01-17T01:00:32+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/2dfcdde19e3b7cb7da7c9ae23e1b7717"},"description":"AquaSecurity |\u672c\u30d6\u30ed\u30b0\u306f\u300cAqua Security\u300d\u793e\u306e\u6280\u8853\u30d6\u30ed\u30b0\u30672020\u5e741\u67086\u65e5\u306b\u516c\u958b\u3055\u308c\u305f\u300c A Deep Dive into eBPF: The","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2020\/01\/ADeepDiveintoeBPFTheTechnologythatPowersTracee3.jpg","width":650,"height":315},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity\/32168#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative"},{"@type":"ListItem","position":3,"name":"AquaSecurity","item":"https:\/\/www.creationline.com\/tech-blog\/cloudnative\/aquasecurity"},{"@type":"ListItem","position":4,"name":"eBPF\u3092\u6398\u308a\u4e0b\u3052\u308b~Tracee\u3092\u652f\u3048\u308b\u6280\u8853~ #AquaSecurity #eBPF #Tracee #\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3 #\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/2dfcdde19e3b7cb7da7c9ae23e1b7717","name":"Kent Magruder","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2021\/12\/avatar.png","caption":"Kent Magruder"},"url":"https:\/\/www.creationline.com\/tech-blog\/author\/k-magruder"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/32168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=32168"}],"version-history":[{"count":68,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/32168\/revisions"}],"predecessor-version":[{"id":32384,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/32168\/revisions\/32384"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/32171"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=32168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=32168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=32168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}