æ°ããé«æ§è½ã§æ±ç¨çãªã·ã¹ãã ã³ã¼ã«ããã¯ã®ä»çµã¿ãä½ã£ã¦ã¿ã¾ããã ã¢ããã¼ã·ã§ã³ã¨ãã¦ãã·ã¹ãã ã³ã¼ã«ãããã¯ãã¦ã¦ã¼ã¶ã¼ç©ºéã§ã¨ãã¥ã¬ã¼ãããããªã£ãã®ã§ãããç¾ç¶ãæ§è½ã¨æ±ç¨æ§ã両ç«ããä»çµã¿ããªãããã ã£ãã®ã§ãæ°ããæ¹æ³ãèãã¾ããã ä»åã®ã·ã¹ãã ã³ã¼ã«ããã¯ã®ä»çµã¿ã¯ä»¥ä¸ã®ãããªç¹å¾´ãããã¾ãã ptrace ãã 100 å以ä¸é«é LD_PRELOAD ãæ¢åã®ãã¤ããªæ¸ãæããã¼ã«ããç¢ºå® ã«ã¼ãã«ã¸ã®å¤æ´ãªãããã¤ã«ã¼ãã«ã¢ã¸ã¥ã¼ã«ã使ããªã ããã°ã©ã ã®ã½ã¼ã¹ã³ã¼ããããã°ã©ã ã®åã³ã³ãã¤ã«ä¸è¦ eBPF ã§ãã¬ã¼ã·ã³ã°ããã¦ããããã©ãã§ããã°å¶ç´ãå°ãªãã¦ã¼ã¶ã¼ç©ºéã§ãã¬ã¼ã·ã³ã°ãã¼ã«ãä½ãããããããã¯ãgVisor ã®ãããªãµã³ãããã¯ã¹ãä½ãããããã©ãptrace ã«ããæ§è½å£åã大ããã®ã§ãä»ã®é«éãªã·ã¹ãã ã³ã¼ã«ããã¯ã®ä»çµã¿ã使ããããã¨ãããã
Mockito ã gomock ã使ããããããããåä½ãã¹ãã¨ããã®ã¯ã¢ãã¯ãããã®ã§ãããã¨ããæãè¾¼ã¿ãããã®ãã人ã ãã¢ãã¯ãããã¦ããã®ãææã¿ãããã ã¢ãã¯ã¯å¿ è¦æªã§ãããªãã«ããããã¨ã¯ãªããå¤é¨ã® API ãµã¼ãã¼ã¨ãã¯ã¬ã³ã¬ã³å©ãããã«ããããªãããã©ããã¡ã¤ã«èªã¿æ¸ããããã¯ãå®éã«ãã¡ã¤ã«ãä½ã£ããæ¶ããããã¦ãã¾ã£ã¦ããã/etc/passwd ãæ¶ãã¨ãã1GB ã®ãã¡ã¤ã«ãä½ãã¨ãã ã¨é£ãããããããªãããã©ããã®å ´åã§ãããã¹ã®ãã¬ãã£ãã¯ã¹ãæå®ã§ããããã«ãã¦ãä¸æãã£ã¬ã¯ããªã®ä¸ã® etc/passwd ã使ãã¨ãããã¡ã¤ã«ãµã¤ãºãæå®ã§ããããã«ããã¨ããéãéã¯ããã¤ãããããããé£ã°ãã¦ããã¡ã¤ã«æä½ã¯ä¸å¾ã¢ãã¯ãã¾ããããã¨ãé å¼µãã ãã¨è¾ããã¨ã«ãªããã¡ã ã ã¢ãã¯ã®ä¸çªã®åé¡ã¯ãæ¬çªã¨ãã¹ãã§éãã³ã¼ããèµ°ããã¨ã§ãããã¯èªåãã¹ãã®ä¾¡å¤
岸ç°å é£ãæç«ããè¡è°é¢ã®ç·é¸æã10æ31æ¥ã«æ±ºã¾ãã¾ãããæ¿æ²»å¥½ãã¨ãã¦ã¯ãç·é¸æãã¨èãã ãã§ãªãã¨ãªãçãä¸ãã£ã¦ãã¾ãã®ã§ãããããæ°åã®å½æ¿é¸æã«é¢ãã¦ã¯ãã®çµæã«ä¸æºãæã£ã¦ããéå æ¯æè ããããã¯ç¡å æ´¾ã®äººãå°ãªããªãã¨æãã¾ãã ããªãèªæ°ãåã£ã¦ãã¾ãã®ãï¼ãããæ¯åéå ã«åã¡ç®ããªããããªã®ã¯ãªããªã®ãï¼ãã¨æã人ãããã§ããããããã®çç±ãä½åãã®æ¬ã¨èãã¦ã¿ããã¨ããã®ããã®ã¨ã³ããªã¼ã®çãã§ãã ã¾ããåºçºç¹ã¨ãªãã®ã¯è°·å£å°ç´ãç¾ä»£æ¥æ¬ã®ä»£è¡¨å¶æ°ä¸»æ¿æ²»ãï¼æ±äº¬å¤§å¦åºçä¼ï¼ã®2pã«è¼ã£ã¦ãããã®ã°ã©ãã§ãã ã°ã©ãã®ã¡ããã©çãä¸ã®å±±ãæ権è ã®å·¦å³ã¤ããªãã®ã¼ã®åå¸ãå°ãå³ã«ããå±±ãè¡è°é¢è°å¡ã®åå¸ãããã¦ãã®é ç¹ããå³ã«å¼ããã縦ã®ç¹ç·ãå®åé¦ç¸ã®ã¤ããªãã®ã¼çãªä½ç½®ã§ãã æ権è ã®ã¤ããªãã®ã¼ããããè¡è°é¢è°å¡ã®ã¤ããªãã®ã¼ãå³å´ã«ããã¦ãããããã«å®åå é¦ç¸
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}