Post Syndicated from The History Guy: History Deserves to Be Remembered original https://www.youtube.com/watch?v=GKWrOLrp80c
Coin Flips Are Biased
Post Syndicated from Bruce Schneier original https://www.schneier.com/blog/archives/2023/10/coin-flips-are-biased.html
Experimental result:
Many people have flipped coins but few have stopped to ponder the statistical and physical intricacies of the process. In a preregistered study we collected 350,757 coin flips to test the counterintuitive prediction from a physics model of human coin tossing developed by Persi Diaconis. The model asserts that when people flip an ordinary coin, it tends to land on the same side it started—Diaconis estimated the probability of a same-side outcome to be about 51%.
And the final paragraph:
Could future coin tossers use the same-side bias to their advantage? The magnitude of the observed bias can be illustrated using a betting scenario. If you bet a dollar on the outcome of a coin toss (i.e., paying 1 dollar to enter, and winning either 0 or 2 dollars depending on the outcome) and repeat the bet 1,000 times, knowing the starting position of the coin toss would earn you 19 dollars on average. This is more than the casino advantage for 6 deck blackjack against an optimal-strategy player, where the casino would make 5 dollars on a comparable bet, but less than the casino advantage for single-zero roulette, where the casino would make 27 dollars on average. These considerations lead us to suggest that when coin flips are used for high-stakes decision-making, the starting position of the coin is best concealed.
Boing Boing post.
Introducing Amazon CodeWhisperer Dashboard and CloudWatch Metrics
Post Syndicated from Karthik Rao original https://aws.amazon.com/blogs/devops/introducing-amazon-codewhisperer-dashboard-and-cloudwatch-metrics/
Amazon CodeWhisperer is an AI coding companion that helps improve developer productivity by offering contextualized code snippets, or suggestions, generated based on coding context and natural language prompts to help developers build software quickly, responsibly, and securely. For enterprise customers, CodeWhisperer offers a Professional tier that adds administrative features, like SSO and IAM Identity Center integration, policy control for code suggestions with references to open-source code, and higher limits on security scanning.
When I work with individual developers, they immediately recognize the productivity gains CodeWhisperer offers. However, it can be difficult to measure that same impact across the entire organization. Enterprise customers have requested to understand how many of their developers use CodeWhisperer, how often they use it, and how often they accept the suggestions that CodeWhisperer offers. This is now possible via the CodeWhisperer Dashboard and metics that CodeWhisperer sends to Amazon CloudWatch enabling enterprises to measure the impact of CodeWhisperer.
In this post, I will walk through the new metrics and dashboard options. Note that these features are only available in CodeWhisperer Professional. If you have not configured CodeWhisperer Professional, you can follow the instructions in the CodeWhisperer User Guide. For the remainder of this post, I will assume that you have configured CodeWhisperer Professional are logged into the AWS Console as a CodeWhisperer Administrator. Note that when using the CodeWhisperer Professional, CodeWhisperer does not collect your content for service improvement purposes.
Using the CodeWhisperer Dashboard
CodeWhisperer now includes a dashboard, shown in the following image, to help enterprises understand how developers are benefiting from CodeWhisperer. This dashboard is designed to answer the most common questions.

The CodeWhisperer Dashboard includes the following sections:
User activity: The User activity section includes the active subscriptions and daily active users. Active subscriptions indicate how many CodeWhisperer seats you have provisioned, while daily active users indicate how many of those seats are used on a daily basis.
Code impact: The Lines of code generated by CodeWhisperer indicates how many lines of code were suggested by CodeWhisperer and accepted by your developers. The percentage of code written by CodeWhisperer indicates how much of your total code is made up of suggestions from CodeWhisperer. This is a great indication of the value your developers are gaining from the service. Accepted suggestions with references indicates the number of suggestions from CodeWhisperer that developers accepted which are based on open-source projects, the references to which CodeWhisperer makes available to you.
Security scans: CodeWhisperer security scan is a tool that helps identify security vulnerabilities in your developers’ code. The data shown indicates how many scans your developers have run in their Integrated Development Environment (IDE).
Using CloudWatch Metrics
While the CodeWhisperer Dashboard will address the most common questions, CodeWhisperer records additional data that may be of interest. CodeWhisperer records these as Amazon CloudWatch metrics, allowing you to create alarms, and custom dashboards. CodeWhisperer records CloudWatch metrics with various levels of granularity.
First, CodeWhisperer records a few high-level metrics as shown in the following image. Most of these already appear on the Dashboard, including the SubscriptionCount, ActiveUsers and Invocations. However, it is still useful to have them in CloudWatch so you can set alarms and build your own dashboards. In the following image, I show the weekly invocation count over the past two months.

Diving a little deeper, you may want to understand how CodeWhisperer is used for specific languages. For example, I may want to understand how CodeWhisperer benefits the front-end developers, who use JavaScript, and compare that with the back-end developer, who use Python. I can do this by leveraging the Programming Language dimension as shown in the following image.

Finally, if you want to dive even deeper, you could can use the more granular CompletionType, ProgrammingLanguage, SuggestionState dimension. CompletionType can either be BLOCK or LINE. Depending on your use case, CodeWhisperer may generate an entire function block in one suggestion or provide line-by-line suggestion. SuggestionState can be ACCEPT indicating that the user accepted the suggestion, REJECT indicating the user rejected the suggestion, or DISCARD indicating that CodeWhisperer did not make the suggestion.
I could use these metric on their own, but it is often even more powerful to use CloudWatch Math Metric to calculate custom metrics. For example, in the following image, I calculate the accept rate for JavaScript suggestions by dividing the sum of accepted suggestions by the total number of accepted and rejected suggestions.

CodeWhisperer Customizations
Swami Sivasubramanian recently announced Amazon CodeWhisperer customization capability to generate more relevant code suggestions informed by your organization’s code base. This capability uses the latest model and context customization techniques and is now available in preview. With this capability, CodeWhisperer has added additional CloudWatch metrics that let you focus on your customizations. In addition, you can filter the CodeWhisperer dashboard by customization, as shown in the following image.

Of course, you can also filter by customization in CloudWatch. CodeWhisperer publishes additional metrics that include the CustomizationARN dimension. You can use these new metrics to gather details on how your customizations are performing. For example, in the following image, I am graphing the accepted suggestions for Java for my CodeWhisperer customization. I can use this to understand how well the custom version of CodeWhisperer is performing and look for opportunities to improve my customizations.

If you did not get the desired performance improvement, consider increasing the data size and data quality for the customization.
Custom Dashboards
While CloudWatch metrics are interesting on their own, you may want to create a custom dashboard that displays multiple metrics on the screen at once. For example, I would like to see the accept rate and percent of code Written by CodeWhisperer for each of the languages my team uses. These include Python, Java, JavaScript and TypeScript. In the following, image have combined each of these on a single dashboard so I track it once place.

You can download the source for this dashboard in JSON format. If you would like to create your own dashboard, you can learn more by reading, Creating a CloudWatch Dashboard in the CloudWatch documentation. Alternatively, you can see an example of creating a custom CodeWhisperer Dashboard using CDK in this GitHub repository.
Conclusion
In the past, it was difficult to measure CodeWhisperer’s impact across the entire organization. CodeWhisperer now support CloudWatch Metrics along with a new CodeWhisperer Dashboard that provides insightful data about how your developers use the service. These new features provide the tools to understand how your organization is benefitting from CodeWhisperer. You can read more in the CodeWhisperer Documentation.
About the Author
Как ни цакат с предизборните активности?
Post Syndicated from VassilKendov original https://kendov.com/%D0%BA%D0%B0%D0%BA-%D0%BD%D0%B8-%D1%86%D0%B0%D0%BA%D0%B0%D1%82-%D1%81-%D0%BF%D1%80%D0%B5%D0%B4%D0%B8%D0%B7%D0%B1%D0%BE%D1%80%D0%BD%D0%B8%D1%82%D0%B5-%D0%B0%D0%BA%D1%82%D0%B8%D0%B2%D0%BD%D0%BE%D1%81/
Тук ще се опитам да синтезирам някои факти около предизборните активности и обещания, които лесно се забравят, но пък позволяват да се манипулира общественото мнение. Естествено, не всички са длъжни да се съгласят, но така или иначе човешкото съзнание е достатъчно обременено за да си задава въпросите:
– Може ли да стане по друг начин? Това не е ли работа на Общината? Наистина ли това което правят е толкова важно за мен?
Ще започна с нещо позитивно.
Почистването на градинки и засаждането на растения и дръвчета.
Много модерно в последно време, кандидат кметове и общински съветници да садят градики и да почистват площи. На пръв поглед това изглежда доста „активистко”, но не е точно така. Големият „+” е, че по този нчин се поставят основите на така бленуваното „гражданско общество”. Естествено не във всички случаи това е верно. В повечето случаи това сформира една групичка около кмет или общински съветник, по-скоро приличаща на „актьори на заплата”, което не може да се нарече точно гражданско общество, защото те действат на принципа – Който не е с нас е против нас. Виждате го във ФБ групите, как уж радетели на „добрините” излизват своята жлъч въру хора с различно мнение или по-скоро под предлога за нещо хубаво и полезно (каквито на пръв поглед са тези активности), правят предизборни кампании.
Най-големият минус на тези мероприятия е, че реално ОТНЕМАТ ЕНЕРГИЯТА НА ОБЩЕСТВОТО и пречат за неговото формиране. Замислете се какво би било, ако тези „групички активисти” вместо да садят дървета, поискат от общината ТЯ ДА ГИ ЗАСАДИ! Или поскат общината да изпрати служители, които да почистят градинката. Защото това е нормалния начин за формиране на гражданско общество. За да може и утре общината да си върши работата и освен „гражданско общество” да имаме и работещи институции.
Обобщение: Малко е спорен ефекта от активности по почистване на площадки или засаждане на цветенца и дръвчета. В последствие пак общината ще трябва да се грижи за тях и е редно те да си ги засадят, а „акивистите” да изискват и контролират дейността по обагородяване на средата. Така утре няма да се налага пак да садим и почистваме. Не че е лошо, но нека не вършим работата на общината все пак.
Инфраструктурата – гордостта на всеки кмет
Понеже съм кандидат за кмет на Община Родопи (Община от 21 села около Пловдив), в която живеят хора работещи предимно в големия град, имм доста преки наблюдения за инфраструктурата. Изгражда се с кредит, който ще съществува далеч след изтичането на мандата на кмета и общинския съвет. Това е нормално, но не е нормално да теглиш кредит, ако не си си изпълнил бюджета (изпълнен е едва на 55%) Оставяме на страна финансовата част, но положението е по-скоро като да блаодариш на банкомата, че ти е пуснал собствените ти пари.
И тук резултата от гражданското общество, което прави градинки и сади дръвчета става особено видим. Същото това „общество” е ОК с харченето на парите от кредита и дори е благодарно за този харч. За това, че общината е ДЛЪЖНА да се грижи за инфраструктурата нито дума.
Обобчение: Видите ли „гражданско общество”, което да благодари на Общински кмет за инвестиции в инфраструктура, а не да изисква и протестира, да знаете, че това е зависимо общество. Един вид феодално общество, готово да се постави в зависимост от всяка власт, а не да се бори за правата си!
Мантрите – „Работим здраво” и „Дължите го на мен”
Използвам чисто илюстративно слогана на досегашния кмет на Община Родопи, като образец. Много кметове искат да си припишат заслуги за неща, които нямат нищо общо с тяхната работа. На едно от заседанията на Общинския съвет досегашия председател каза, че най-бързо развиващото се населено място в България (с. Марково до Пловдив е с най-голям брой разрешителни за строеж на глава от населението) поради тяхната дейност. После „Господари на ефира” показаха със скрита камера как същия човек храни децата в училищата с храни с изтекал срок на годност.
Но да се върнем към въпроса. На практика селата в Община Родопи са около Пловдив в полите на Родопите. Тези села се развиват от години, не заради един или друг кмет, а заради локацията си. Развиват се и без инфраструктура. Нея я направиха с кредита последната година, а разрештелните за сроеж, с които се гордее Марково са издадени в началото на мандата без да има инфраструктура. Да не говорим за решенията за строителство и покупката на земята. Те пък са още от предходния мандат, който си беше доста разсипнечески по моя оценка.
Обобщение: – Най-вероятно всичко с което се гордеят кметовете в момента, води своето начало преди техния мандат. Да, не трябва да се омаловажават техия труд и усилия, но не трябва и да се надценяват.
Важните неща – Образование, здравеопазване, обществен транспорт, охрана, култура…
Никой не обръща внимание на истински важните неща. Приема се, че инфраструктурата е най-важото нещо и приоритет на кмета, но не е така. Безспорно инфраструктурата е много важна част от дейността на Общинските ръководства, но тук искам да припомня едно изказване, което се приписва на Чърчил.
През Втората световна война, обсъждайки бюджета за войната, финансовия министър предложил на Чурчил да пренасочат парите за култура, тъйкато това е сфера, която не е свързана дори косвено с военните декствия. Чърчил отговорил по следния начин:
„ За какво водим тази война тогава, ако не заради нашата култура?”
Ако вземем една ремонтирана улица, за която обикновено хората са много благодарни на кметовете и сравним ползите от нея с добро местно образование или необходимостта да водите децата си на частни уроци в града всеки ден (или на спорт) ще излезе, че бихте спестили много повече пари и време, ако намирате подходящото образование във вашето населено място. Същото е и със здравеопазването. Кое е по-важно – осветлението по улиците да бъде LED, или да намирате лекарствата си в местната аптека, а не да ходите до града?
Обощение: Няма да видите кандидат кмет (освен мен разбира се J ) или общински съветник, който да се гордее и хвали с постижеия в тази области. Инфраструктурата е в устата на всички, а големите икономии в личния бюджет се постигат имено от споменатите дейности – Образование, здравеопазване, обществен транспорт, охрана, култура…
Проблемът е, че те не се виждат, а както казахме в началото човешкото съзнание по-трудно си ги представя и следователно подлежи на манипулация.
Все пак не всеки е Чърчил, нали така?
И на изборите – умната. Ето ви пъпросите с които да тествате обещания и рекламирани до момента резултати:
– Може ли да стане по друг начин? Това не е ли работа на Общината? Наистина ли това което правят е толкова важно за мен?
За срещa с мен моля използвайте посочената форма.
[contact-form-7]
The post Как ни цакат с предизборните активности? appeared first on Kendov.com.
Food Safety: Last Week Tonight with John Oliver (HBO)
Post Syndicated from LastWeekTonight original https://www.youtube.com/watch?v=Za45bT41sXg
Comic for 2023.10.16 – New Character
Post Syndicated from Explosm.net original https://explosm.net/comics/new-character
New Cyanide and Happiness Comic
Inspiraling Roundabout
Post Syndicated from xkcd.com original https://xkcd.com/2842/

Could NASA 3D Print a New F-1 Rocket Engine?
Post Syndicated from Curious Droid original https://www.youtube.com/watch?v=NI8HEbBhmWk
Kernel prepatch 6.6-rc6
Post Syndicated from corbet original https://lwn.net/Articles/947825/
The 6.6-rc6 kernel prepatch is out for
testing. “So the previous week has been pretty calm, and a lot of the
”
discussion has been about future changes as so often happens late in the
release cycle.
Stable kernel 6.1.58 released
Post Syndicated from corbet original https://lwn.net/Articles/947819/
The 6.1.58 stable kernel update has been
released; it consists mostly of a handful of reverts in the NFS subsystem.
The Intersection of Art and Fashion | Mayyur Girotra | Talks at Google
Post Syndicated from Talks at Google original https://www.youtube.com/watch?v=wZPnWirAVVk
ASUS ExpertCenter PN64-E1 13th Gen Intel Core Mini PC Mini-Review
Post Syndicated from Eric Smith original https://www.servethehome.com/asus-expertcenter-pn64-e1-13th-gen-intel-core-mini-pc-mini-review/
In our ASUS ExpertCenter PN64-E1 review, we see how this Intel Core i5-13500H mini PC designed for corporate desktops compares
The post ASUS ExpertCenter PN64-E1 13th Gen Intel Core Mini PC Mini-Review appeared first on ServeTheHome.
Comic for 2023.10.15 – Signup
Post Syndicated from Explosm.net original https://explosm.net/comics/signup
New Cyanide and Happiness Comic
loading
Post Syndicated from Oglaf! -- Comics. Often dirty. original https://www.oglaf.com/loading/
8-port 2.5GbE Intel Core Virtualization and Firewall Appliance Mini-Review
Post Syndicated from Eric Smith original https://www.servethehome.com/8-port-2-5gbe-intel-core-virtualization-and-firewall-appliance-mini-review/
We recently took a look at two new 2.5GbE virtualization and firewall appliances. The first one was a 4-port 2.5GbE and 2-port 10GbE SFP+ system that we already reviewed. Now, we are taking a look at the 8-port 2.5GbE version of the system just to complete our review set. New 8-port 2.5GbE Intel Core Firewall […]
The post 8-port 2.5GbE Intel Core Virtualization and Firewall Appliance Mini-Review appeared first on ServeTheHome.
Saturn: The Crown Jewel of the Solar System
Post Syndicated from Geographics original https://www.youtube.com/watch?v=D1V8I9eSFXI
This off-the-grid cassette player is a wind-up
Post Syndicated from Techmoan original https://www.youtube.com/watch?v=99z6dBhONFc
Седмицата (9–14 октомври)
Post Syndicated from Надежда Радулова original https://www.toest.bg/sedmitsata-9-14-oktomvri/

В края на миналата и началото на тази седмица за пореден път се оказахме изправени пред въпроса „Какво е Човекът?“. Венец на творението (по Софокъл) или въже над пропаст (по Ницше), уви, може би вече проядено, скъсано, продънено в пропастта. Чудо или чудовище е най-мощният проект на литературата, философията, изкуството, науката, технологиите?
Едва ли може да има бърз отговор на този въпрос – все още сме в ступор пред граничещите с немислимото картини на нечовешко насилие, извършено от човеци върху други човеци, в случая от бойците на радикалната организация „Хамас“ върху цивилни – деца и възрастни – в различни точки на Израел: от музикалния фестивал Supernova, събрал в пустинята младежи от различни страни, до кибуците Беери и Кфар Аза.
Как точно ще се развие конфликтът, чийто генезис все още е тема на разследване и анализ – дали наистина ще продължи да се разгръща в пълномащабна война, както прогнозират голяма част от специалистите по близкоизточните въпроси, или ще стихне временно… и кърваво и за двете страни? Дали главата на „Хамас“ ще бъде отсечена, а епидемията от терористични актове – овладяна, дали крайнодесните партии в управлението на Израел ще отстъпят от екстремистките си позиции, или още по-добре – ще бъдат извадени от властта, дали ще се поеме по някакъв път на мирни преговори за уреждане на десетилетния кръвопролитен конфликт между Израел и Палестина (с участието на останалите замесени в региона – Египет, Иран, Ливан и пр.) – предстои да узнаем в следващите дни и седмици.
Междувременно в новия ни брой ви припомняме, че преди по-малко от две години станахме свидетели на друго зверско клане, извършено от руските войници в Буча, Ирпин, Гостомел, Бородянка и още градове и села в Украйна. Човек ще рече, че насилието вдъхновява за още насилие, вместо да даде урок. За това как живеят днес оцелелите от сблъсъка с руските окупатори, може да прочетете във втория „репортаж“ от поредицата на Николета Атанасова „Откъси от Украйна: Сега идват зверовете“.
И докато през последните години „зверовете“ са във възход в нашата част от света – нещо, което бяхме позабравили, главозамаяни от европейската си „цивилизованост“, – по никакъв начин не можем да забравим, че след две седмици ни очакват местни избори. Най-малкото, ни го напомнят прясно пренаредените жълти павета, по които продължаваме да се препъваме, а автомобилите ни невротично подскачат като върху продънен батут. За изборите ни напомни и вялият радиодебат между двамата основни претенденти за кметското място в София. Ако сте готови за доза горчив смях или „смешен плач“ (по Ботев), прочетете анализа на Светла Енчева „Приспивен двубой. Липсващите теми в дебата между Васил Терзиев и Антон Хекимян“.
В предизборен контекст е добре да се чете и текстът на Емилия Милчева „За кого скачат синдикатите?“, в който прецизно се анализира политическата и корпоративната зависимост на профсъюзите у нас – разбира се, с акцент върху актуалните стачни действия на работещите във въгледобивната промишленост.
Съвсем очаквано, бедност, безизходица, престъпност, несполучила емиграция са темите на новото българско кино, представено на Варненския фестивал „Златна роза“. В повечето продукции мракът се сгъстява с всеки следващ сантиметър от лентата и „отникъде взорът надежда не види“. Дори и мотивът за непреходно-родното (под формата на патриотично-трапезен кич в някои от емигрантските сюжети) не може да вдъхне живот в оглозганата и притоплена тема за митарствата из мащехата чужбина. Повече за отличените продукции, сред които са безспорно силните „Уроците на Блага“, „Диада“ и „Васил“, ни разказва Петя Славова в „Българското кино на „Златна роза“ 2023“.
Ако искате за миг да се отърсите от мисълта за военните престъпления, за приближаващите избори и за смутната родна действителност, очевидно добре уловена в кинокадри, съветвам ви да прочетете последните вести, представени от Михаил Ангелов в „Научни новини: Нобелови награди 2023“. И без да разбирате от физика, химия или медицина, ще се уверите, че на този свят все пак има и хора, за които звездното небе над главите и моралният закон вътре в тях все още означават нещо.
Накрая искам да завърша седмичния преглед с една песен на Ленард Коен, личната му „молитва“, написана година след турнето му на фронта по време на Войната от Йом Кипур през 1973 г. – Who by Fire:
Кой от огън, кой във водата,
кой посред бял ден, кой в късна доба,
кой от съд божи, кой в съдебна зала, […]
кой окован във тъмница, кой на властта с наметалото,
кой, кой да кажа, че пита?“(прев. от английски Манол Пейков)
Текстът на песента носи отпечатъка на дните, прекарани от Ленард Коен сред войниците, но препраща и към молитвата „Унетане Токеф“, задължителна част от богослужението на Йом Кипур, Деня на изкуплението, деня на опрощаването на греховете. Дано тазгодишният Йом Кипур бъде последният, облян в кръв.
Malicious “RedAlert – Rocket Alerts” Application Targets Israeli Phone Calls, SMS, and User Information
Post Syndicated from Blake Darché original http://blog.cloudflare.com/malicious-redalert-rocket-alerts-application-targets-israeli-phone-calls-sms-and-user-information/


On October 13, 2023, Cloudflare’s Cloudforce One Threat Operations Team became aware of a website hosting a Google Android Application (APK) impersonating the legitimate RedAlert – Rocket Alerts application (https://play.google.com/store/apps/details?id=com.red.alert&hl=en&pli=1). More than 5,000 rockets have been launched into Israel since the attacks from Hamas began on October 7th 2023. RedAlert – Rocket Alerts developed by Elad Nava allows individuals to receive timely and precise alerts about incoming airstrikes. Many people living in Israel rely on these alerts to seek safety – a service which has become increasingly important given the newest escalations in the region.
Applications alerting of incoming airstrikes have become targets as only days ago, Pro-Palestinian hacktivist group AnonGhost exploited a vulnerability in another application, “Red Alert: Israel” by Kobi Snir. (https://cybernews.com/cyber-war/israel-redalert-breached-anonghost-hamas/) Their exploit allowed them to intercept requests, expose servers and APIs, and send fake alerts to some app users, including a message that a “nuclear bomb is coming”. AnonGhost also claimed they attacked other rocket alert applications, including RedAlert by Elad Nava. As of October 11, 2023, the RedAlert app was reportedly functioning normally.
In the last two days, a new malicious website (hxxps://redalerts[.]me) has advertised the download of well-known open source application RedAlert by Elad Nava (https://github.com/eladnava/redalert-android). Domain impersonation continues to be a popular vector for attackers, as the legitimate website for the application (hxxps://redalert[.]me ) differs from the malicious website by only one letter. Further, threat actors continue to exploit open source code and deploy modified, malicious versions to unsuspecting users.
The malicious website hosted links to both the iOS and the Android version of the RedAlert app. But while the link to the Apple App Store referred to the legitimate version of the RedAlert app by Elad Nava, the link supposedly referring to the Android version hosted on the Play Store directly downloads a malicious APK file. This attack demonstrates the danger of sideloading applications directly from the Internet as opposed to installing applications from the approved app store.
The malicious RedAlert version imitates the legitimate rocket alert application but simultaneously collects sensitive user data. Additional permissions requested by the malicious app include access to contacts, call logs, SMS, account information, as well as an overview of all installed apps.
The website hosting the malicious file was created on October 12, 2023 and has since been taken offline. Only users who installed the Android version of the app from this specific website are impacted and urgently advised to delete the app. Users can determine if they installed the malicious version by reviewing the permissions granted to the RedAlert app. If users are unsure whether they installed the malicious version, they can delete the RedAlert applications and reinstall the legitimate version directly in the Play Store.

Malicious Android Package Kit (APK) Analysis
The malicious Android Package Kit (APK) file is installed by a user when they click the Google Play button on the fake RedAlert site. Once clicked, the user downloads the app directly from the fake site at hxxps://redalerts[.]me/app.apk. The SHA-256 hash of the APK is 5087a896360f5d99fbf4eb859c824d19eb6fa358387bf6c2c5e836f7927921c5.
Capabilities
A quick analysis of the AndroidManifest.xml file shows several differences compared to the legitimate, open source RedAlert application. Most notable are the additional permissions needed to collect information on the victim. The permissions added are listed below:
- android.permission.GET_ACCOUNTS
- android.permission.QUERY_ALL_PACKAGES
- android.permission.READ_CALL_LOG
- android.permission.READ_CONTACTS
- android.permission.READ_PHONE_NUMBERS
- android.permission.READ_PHONE_STATE
- android.permission.READ_PRIVILEGED_PHONE_STATE
- android.permission.READ_SMS
The application is designed to look and act like RedAlert. However, upon opening the app, a malicious service is started in the background. The startService() call is the only change to the onCreate() method, and this begins the sequence of malicious activity, which the actor has placed in a package called com.company.allinclusive.AI

The service is run to gather data from victims’ phones and upload it to the actor’s secure server. The data is extensive and includes:
- SIM information, including IMEI and IMSI numbers, network type, country, voicemail number, PIN status, and more
- Full Contact list
- All SMS messages, including content and metadata for all statuses (e.g. received, outgoing, sent, etc.)
- A list of accounts associated with the device
- All phone calls and conversation details for including incoming, outgoing, missed, rejected, and blocked calls
- Logged-in email and app accounts
- List of installed applications
The actor’s code for gathering this information is illustrated below.

Stolen data is uploaded to an HTTP server at a hardcoded IP address. The actor has a Tools class which details the IP address where the data is to be uploaded:

Although HTTP and port 80 are specified, the actor appears to have the ability to use HTTPS and port 443 if a certificate is found bundled within the application package:

Data is uploaded through a Connector class, written by the actor. The Connector is responsible for encrypting the stolen data and uploading it to the HTTP server. In this sample, files are encrypted with AES in CBC mode with PKCS5 Padding. The keys are randomly generated and appended to the packaged data, however the keys are encrypted with RSA using a public key bundled in the malicious app. Because of this, anybody who is able to intercept the stolen data will be unable to decrypt it without the actor’s private key.
The encrypted files have names that look like <ID>_<DATE>.final, which contain:
- <ID>_<DATE>.enc (encrypted data)
- <ID>_<DATE>.param (AES encryption parameters, e.g. key and IV)
- <ID>_<DATE>.eparam (RSA parameters, e.g. public key)
Anti-Analysis Runtime Capabilities
To avoid detection the actor included anti-analysis capabilities which can run at the time the app is started. The methods for anti-analysis that the attacker has included were anti-debugging, anti-emulation, and anti-test operations
Anti-Debugging
The application makes a simple call using the builtin android.os.Debug package to see if the application is being debugged.

Anti-Emulation
The application attempts to locate certain files and identifiers to determine whether it is being run in an emulated environment. A snippet of these indicators are shown below:

Anti-Test
The application has utilities to identify whether a test user (“monkey”) is using the application:

These methodologies are all rudimentary checks for whether the application is under runtime analysis. It does not, however, protect the malicious code against static analysis.
How To Detect This Malware On Your Device
If you have installed RedAlert on your device, the extraneous permissions added by the actor can be used to determine whether you have been compromised. The following permissions appearing on the RedAlert app (whether or not enabled) would indicate compromise:
- Call Logs
- Contacts
- Phone
- SMS
How To Protect Yourself
You can avoid attacks like this by following the guidance below:
- Keep your mobile device up to date on the latest software version at all times
- Consider using Cloudflare Teams (with Cloudflare Gateway)
- Avoid using third party mobile application stores
- Never install applications from Internet URLs or sideload payloads
- Consider using 1.1.1.1 for families to block malicious domains on your network
IOCs
Under attack? Contact our hotline to speak with someone immediately.Visit 1.1.1.1 from any device to get started with our free app that makes your Internet faster and safer.To learn more about our mission to help build a better Internet, start here. If you’re looking for a new career direction, check out our open positions.
Comic for 2023.10.14 – Home Depot
Post Syndicated from Explosm.net original https://explosm.net/comics/home-depot
New Cyanide and Happiness Comic


