[16711] 2021-04-25_使用SecretScanner发现容器镜像和文件系统中的敏感数据

文档创建者:s7ckTeam
浏览次数:5
最后更新:2025-01-18
2021-04-25_使用SecretScanner发现容器镜像和文件系统中的敏感数据 使 S e c r e t S c a n n e r A l p h a _ h 4 c k   F r e e B u f   2 0 2 1 - 0 4 - 2 5 访 I T A W S 访 I D A W S 访 G o o g l e   O A u t h 访 使 A P I S S H C I / C D 使 S e c r e t S c a n n e r S e c r e t S c a n n e r 广 J S O N S e c r e t S c a n n e r S e c r e t S c a n n e r D o c k e r 使 使 使 D o c k e r 使 S e c r e t S c a n n e r 1 S e c r e t S c a n n e r $   . / S e c r e t S c a n n e r   - - h e l p U s a g e   o f   . / S e c r e t S c a n n e r :     - c o n f i g - p a t h   s t r i n g           S e a r c h e s   f o r   c o n f i g . y a m l   f r o m   g i v e n   d i r e c t o r y .   I f   n o t   s e t ,   t r i e s   t o   f i n d   i t   f r o m   S e c r e t S c a n n e r   b i n a r y ' s   a n d   c u r r e n t   d i r e c t o r y     - d e b u g - l e v e l   s t r i n g           D e b u g   l e v e l s   a r e   o n e   o f   F A T A L ,   E R R O R ,   I M P O R T A N T ,   W A R N ,   I N F O ,   D E B U G .   O n l y   l e v e l s   h i g h e r   t h a n   t h e   d e b u g - l e v e l   a r e   d i s p l a y e d   ( d e f a u l t   " E R R O R " )     - i m a g e - n a m e   s t r i n g           N a m e   o f   t h e   i m a g e   a l o n g   w i t h   t a g   t o   s c a n   f o r   s e c r e t s     - j s o n - f i l e n a m e   s t r i n g           O u t p u t   j s o n   f i l e   n a m e .   I f   n o t   s e t ,   i t   w i l l   a u t o m a t i c a l l y   c r e a t e   a   f i l e n a m e   b a s e d   o n   i m a g e   o r   d i r   n a m e     - l o c a l   s t r i n g           S p e c i f y   l o c a l   d i r e c t o r y   ( a b s o l u t e   p a t h )   w h i c h   t o   s c a n .   S c a n s   o n l y   g i v e n   d i r e c t o r y   r e c u r s i v e l y .     - m a x - m u l t i - m a t c h   u i n t           M a x i m u m   n u m b e r   o f   m a t c h e s   o f   s a m e   p a t t e r n   i n   o n e   f i l e .   T h i s   i s   u s e d   o n l y   w h e n   m u l t i - m a t c h   o p t i o n   i s   e n a b l e d .   ( d e f a u l t   3 )     - m a x - s e c r e t s   u i n t           M a x i m u m   n u m b e r   o f   s e c r e t s   t o   f i n d   i n   o n e   c o n t a i n e r   i m a g e   o r   f i l e   s y s t e m .   ( d e f a u l t   1 0 0 0 )     - m a x i m u m - f i l e - s i z e   u i n t           M a x i m u m   f i l e   s i z e   t o   p r o c e s s   i n   K B   ( d e f a u l t   2 5 6 )     - m u l t i - m a t c h           O u t p u t   m u l t i p l e   m a t c h e s   o f   s a m e   p a t t e r n   i n   o n e   f i l e .   B y   d e f a u l t ,   o n l y   o n e   m a t c h   o f   a   p a t t e r n   i s   o u t p u t   f o r   a   f i l e   f o r   b e t t e r   p e r f o r m a n c e     - o u t p u t - p a t h   s t r i n g           O u t p u t   d i r e c t o r y   w h e r e   j s o n   f i l e   w i l l   b e   s t o r e d .   I f   n o t   s e t ,   i t   w i l l   o u t p u t   t o   c u r r e n t   d i r e c t o r y     - t e m p - d i r e c t o r y   s t r i n g           D i r e c t o r y   t o   p r o c e s s   a n d   s t o r e   r e p o s i t o r i e s / m a t c h e s   ( d e f a u l t   " / t m p " )     - t h r e a d s   i n t           N u m b e r   o f   c o n c u r r e n t   t h r e a d s   ( d e f a u l t   n u m b e r   o f   l o g i c a l   C P U s ) d o c k e r   b u i l d   - - r m = t r u e   - - t a g = d e e p f e n c e i o / s e c r e t s c a n n i n g : l a t e s t   - f   D o c k e r f i l e
2 使 D o c k e r 3 4 S e c r e t S c a n n e r 5 S e c r e t S c a n n e r S e c r e t S c a n n e r J S O N 使 J S O N 1 D o c k e r 2 H y p e r s c a n 3 G o v 1 . 1 4 4 G o g o h s y a m l . v 3 c o l o r 5 $ G O P A T H / b i n $ H O M E / g o / b i n S e c r e t S c a n n e r 6 广 使 S e c r e t S c a n n e r 7 c o n f i g . y a m l S e c r e t S c a n n e r S e c r e t S c a n n e r S e c r e t S c a n n e r S e c r e t S c a n n e r 使 s h h g i t S e c r e t S c a n n e r d o c k e r   b u i l d   - - r m = t r u e   - - t a g = d e e p f e n c e i o / s e c r e t s c a n n i n g : l a t e s t   - f   D o c k e r f i l e d o c k e r   p u l l   d e e p f e n c e i o / s e c r e t s c a n n i n g d o c k e r   p u l l   n o d e : 8 . 1 1 d o c k e r   r u n   - i t   - - r m   - - n a m e = d e e p f e n c e - s e c r e t s c a n n e r   - v   $ ( p w d ) : / h o m e / d e e p f e n c e / o u t p u t   - v   / v a r / r u n / d o c k e r . s o c k : / v a r / r u n / d o c k e r . s o c k   - v   / u s r / b i n / d o c k e r : / u s r / b i n / d o c k e r   d e e p f e n c e i o / s e c r e t s c a n n i n g   - i m a g e - n a m e   d o c k e r   r u n   - i t   - - r m   - - n a m e = d e e p f e n c e - s e c r e t s c a n n e r   - v   $ ( p w d ) : / h o m e / d e e p f e n c e / o u t p u t   - v   / v a r / r u n / d o c k e r . s o c k : / v a r / r u n / d o c k e r . s o c k   - v   / u s r / b i n / d o c k e r : / u s r / b i n / d o c k e r   d e e p f e n c e i o / s e c r e t s c a n n i n g   - l o c a l   / h o m e / d e e p f e n c e / s r c / S e c r e t S c a n n e r / t e s t g o   g e t   g i t h u b . c o m / d e e p f e n c e / S e c r e t S c a n n e r g i t   c l o n e   h t t p s : / / g i t h u b . c o m / d e e p f e n c e / S e c r e t S c a n n e r . g i t g o   b u i l d   - v   - i . / S e c r e t S c a n n e r   - - h e l p . / S e c r e t S c a n n e r   - c o n f i g - p a t h   / p a t h / t o / c o n f i g . y a m l / d i r   - l o c a l   t e s t . / S e c r e t S c a n n e r   - c o n f i g - p a t h   / p a t h / t o / c o n f i g . y a m l / d i r   - i m a g e - n a m e   n o d e : 8 . 1 1

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则