Skip to content
Menu
Open World News Open World News
  • Privacy Policy
Open World News Open World News

Category: News

FSF Blogs: Call for sessions for LibrePlanet 2024: Cultivating Community now open

Posted on September 7, 2023 by Michael G
The call for sessions for LibrePlanet 2024: Cultivating
Community, the sixteenth edition of the Free Software Foundation’s
(FSF) conference on ethical technology and user freedom, is open.

Reproducible builds, signing keys, and binary repos

Posted on September 7, 2023 by Michael G

Earlier this year, we reported about our progress concerning reproducible
builds
. Meanwhile, more and more apps
are using this; you can find some statistics
here
:
compared to about 20 apps in November 2022, the number of apps being built
reproducibly went up by almost a factor of 10 to around 191 in September
2023. About 2 out of every 3 apps newly added to F-Droid are using this
path. But what exactly does „reproducible build“ mean, in easy terms and
without all the „tech-buzz“?

All the years before, F-Droid created a dedicated key for each app to sign
the published APKs, but now with reproducible builds F-Droid ships APKs that
are signed by the upstream developer(s). Which proves to you that the
developer confirmed: „this is what I intended to publish, this was built
from my code“. And that it’s distributed by F-Droid tells you: „F-Droid
confirms, too, that this is the APK built from the very code the developer
provided“. So neither of the two could have „sneaked in“ something not
contained in the app’s source code repository.

Verification at F-Droid, again in easy terms, happens this way: the app is
built from the source code on F-Droid’s build servers. Then the
corresponding APK built by the developer is fetched, and compared against
it. The only differences should be the signature files – as the APKs from
the developer was signed using their private key, which F-Droid has no
access to. If this is the case (i.e. the two APKs match), it was proven to
be the very same „binary“ – and F-Droid can distribute the one signed by the
developer.

You can find an outline of the process here, and technical details in
this documentation.

Wins and caveats

A few advantages are pretty clear: higher trust is the first thing coming to
mind, as now two parties (F-Droid and the developer) can both confirm the
integrity of the distributed APK. But there’s more to it. For one, if a
developer has to push out some „emergency update“ (e.g. to fix a security
issue, or something critical was broken) you’d no longer need to wait for a
full build cycle or two to get hold of it. As the APK you’ve installed from
F-Droid was signed using the developers’ private key, you can simply take an
APK they provide you directly by other means (e.g. via the app’s repository
at Codeberg, GitLab or Github) and update to that – provided you trust the
developer enough – which you then must, as such builds are not (yet)
verified by F-Droid.

So are there any „drawbacks“? Why does the header mention „caveats“? Well…
F-Droid now provides APKs it did not sign itself. So what if an app’s source
repo was compromised by a malicious party which then modified the code and
provided their own release, while the original author e.g. was on vacation,
at the hospital or otherwise indisposed? They’d of course sign the APK with
their own private key (as hopefully the original author kept their private
key safe). But that must somehow be considered and dealt with. So meet:

AllowedAPKSigningKeys

Whenever a reproducible build is established at F-Droid, the hash of the
corresponding developer’s certificate used to sign their APKs is stored
along with the other metadata on F-Droid’s end. The keyword for that in the
Build Metadata is
AllowedAPKSigningKeys. So when the developer’s APK is fetched for
comparison, the signature is compared against that:

apksigner verify --print-certs app-release.apk 2>/dev/null 
 | sed -n 's/^Signer #1 certificate SHA-256 digest: (.*)/1/p'

will give us the SHA-256 hash of the certificate used to sign the
APK. Should it not match, the APK will be rejected – and the build is
considered „failed“. This ensures that F-Droid really only ships the
intended APKs, signed by the proper key – and the above mentioned potential
„malicious party“ cannot easily „sneak in things“. A good security feature
to be used in this context, though it originally was intended for something
else:

Binary repositories

What is that you ask? Well: F-Droid is not tied to the single repository
operated by F-Droid itself. Everyone can set up a custom repository. Like
the apps F-Droid distributes, all its code is free and libre, too. One of
the best known third-party repositories probably is the one known as
„IzzyOnDroid Repo“ or „IzzySoft Repo“,
currently providing more than 1,111 apps. There, AllowedAPKSigningKeys was
established for all its apps in the first week of August 2023. As this repo
takes its APKs directly from the developers’ repositories instead of
building them from the source code, this extra measure of security is
especially useful – for the reason outlined above: to ensure all updates are
„legit“ (and not placed to the repo by a malicious actor).

So whenever the updater fetches a new APK from the corresponding app’s repo
at Codeberg, GitLab, Github etc., fdroidserver validates it was really
signed with the key of its author. If it was not, it will never be included
in the repository’s index (so it will not be shipped to you and thus cannot
endanger you). Instead, the repo’s maintainer will receive an alert and has
to investigate:

2023-09-01 20:56:25,845 WARNING: "com.example.app_123.apk" is signed by a key that is not allowed:
a0fe1234567890abcdefa0fe1234567890abcdefa0fe1234567890abcdef1234

Which means: Now it’s time to investigate what happened. As the APK will
never reach the index before the new key has been acknowledged by the
repository maintainer, this can be done thoroughly without haste.

Is that really a frequent issue?

Unfortunately, it is. During the process of updating the metadata at the
IzzyOnDroid repository, 26 of the 1105 apps checked encountered that issue:
the signing keys were changed since the first version present. That makes
2.35% of the apps checked. As if that wouldn’t be bad enough, not one of the
following 4 weeks passed without at least one other app encountering that
issue. Making the raw stats: the year has 52 weeks, the repo has 1000+ apps
– with just one app per week, roughly one out of 20 apps (5%) are affected
by this problem at least once!

In each case, the corresponding developer was reached out to so the reason
could be found, and the issue (hopefully) be fixed. You might wonder what
could have caused this, so here are some of the reasons given. All of them
meant, one way or the other:

„Ugh, I lost the signing key…“

  • disk crashes (or entire PCs giving up)
  • accidentally deleting the directory where the „important stuff“ is in
  • signing was done by a team member that left (with the key)
  • the development environment was freshly set up, or moved to a new machine
    – and somehow the keystore was not moved along (when the problem was
    discovered, the original environment was no longer accessible)
  • the developer had used a „debug key“ when development was started (fine if
    you locally develop things for yourself – but not a good thing if the app
    shall be distributed), so they had to switch to a „release key“
  • the original key was „too weak“ and had to be replaced by a stronger one

In the last two cases, legitimacy was easy to establish by providing the
latest APK in two variants: the very same build, but once signed with the
original, and another with the new key. Thus the two APKs could be compared
similarly to the procedure used with reproducible builds – provided the
original key was not already deleted for being „obsolete“.

Lessons learned #1: the repository maintainer

It is a good measure to establish AllowedAPKSigningKeys in your binary
repo for all apps it contains. This issue happens far too often to be
ignored. The apps you distribute must be safe: you have a responsibility
towards the people using your repository. While such updates would be
rejected if the app was already installed on a device („incompatible
signature“), the problem won’t be detected by those installing the app
„freshly“, for the first time. Those must be protected as well.

The good part: in none of the cases, a malicious action was the reason for
the key change. That does not mean it will never be the case – but it’s good
to know we can trust our FOSS developers pretty well.

The bad part: the importance of keeping the keystore safe seems not to be
self-evident enough. We need to raise awareness for this.

Lessons learned #2: how to keep your key safe and what measures to take for the event of loss?

The obvious: Make backups! Not just on your development machine. Have
another backup off-device – e.g. on an encrypted thumbdrive stored in a
secure place, on a trustable server/machine elsewhere (with a friend, a
family member, or a cloud service – again, an encrypted backup). And be
sure you know how to restore it. You might not need a Backup Ceremony like
the one the F-Droid team performed – but some measures
should be taken. And no: uploading them to your app’s public git repo is
not a good idea, not even for a backup (don’t laugh, but that happened,
too).

The less obvious: make sure someone/something can „vouch“ for you. Again,
from the cases encountered:

  • sign your commits (GPG/PGP), ideally all of them and from the very
    start. And of course keep your GPG/PGP key safe as well. That way your
    signed commits from after the event prove you’re still in control of
    that key. It’s rather unlikely someone compromised your Git repo and
    your GPG/PGP key but not your keystore for signing the apps.
  • provide different (independent) ways to contact you. Your Git repo
    compromised could mean it was entered via your compromised mail
    account – but probably not your XMPP or Matrix account. This information
    should also be available from early on: all details provided only
    afterwards could come from the potential „malicious actor“ and would not
    prove your ownership.
  • again early on, introduce a person knowing you that can vouch for you –
    for example as they can verify your story by giving you a phone call or
    meeting you in person, and then testify about it. Ideally, this person is
    a contributor to your repo. But most importantly, the community must know
    they can trust them. Which is either because it’s a well-known person – or
    at least someone introduced long before the incident.

Lessons learned #3: what to do when it happened?

Most important: do not try to simply „cover up“ or „hush up“. This is a
security incident; sweeping it under the carpet just makes you lose trust
entirely. Updates won’t work without uninstall/reinstall, so folks will
notice anyway (except on Google Play Store, which re-signs the APKs). Rather
be transparent about it:

  • mention it in the release notes (and in the per-release changelogs if you
    use Fastlane or
    Triple-T).
  • maybe have a short article on it (e.g. a public issue with your app’s
    repo, or a blog entry) explaining what happened, what you had to do and
    what you learned from it (so others can learn from it, too).
  • if you have some means to prove your identity (you’ve always signed your
    commits, you have some person to vouch for you, etc.), mention it with the
    release notes/article so everyone can verify. If you still have access to
    your old keystore but had to change it for some reason, provide an
    additional APK built from the same commit but signed with the old key,
    which would be a definite proof: the methods of verifying reproducible
    builds could be applied then to compare the two APKs – which then again
    should only differ in the signature.
  • nobody was ever „born wise“ – we’re all students for all of our lives
    („who ceases to be a student, never was a student at all“). So yes, this
    is bad, and you might feel „ashamed“. But it shows character and
    establishes trust to stand by your mistakes, to admit them. That way
    people know you won’t „fool“ them and they can believe you.

Xcom: a cross-platform graphics user interface

Posted on September 7, 2023 by Michael G
Xcom is a crossplatform GUI system: a multi-windowed, multi-tasking environment. Xcom allows you to browse, copy, view and manage your files, start and stop programs, watch and listen basic media content and music. Unlike other windowing systems and protocols, it integrates the basic functionality as a monolithic, cohesive program. Xcom can run on top of various kernel, currently the DOS version is available publicly. Xcom is tiny in size, fast, doesn’t requires installation process. Xcom is hundreds of times faster and smaller than competitive systems – it requires only about 5 MBytes of disk space, and starts up within a few seconds. Xcom has a familiar appearance of classic operating system user interfaces. Xcom is a handy tool to keep it on your retro computer, it can work magnitudes faster than any other modern desktop environment, meanwhile the features are up-to date. Xcom has all the basic tools for browsing pictures, listening to music files, reading and writing text documents and drawing simple graphics. This is an interesting approach to developing a full… User interface? Operating environment? It currently is only available for DOS, but other systems should follow. It does have a few intrinsic limitations – since it’s entirely contained in one program, you can’t develop for this or create new applications, since it’s not a toolkit and doesn’t have a compiler or anything like that. It’s also not open source, and while that doesn’t mean it’s not good or not interesting, it does limit the interest this will gather in the wider community. Regardless, it looks great, and it’s clear a lot of work and love went into it.

Desenhar Cam-li SNK vs Capcom no IbisPaintX Android Parte 2

Posted on September 6, 2023 by Michael G
A linda fusão de Chun-li Street Fighter e Camy Street Fighter

Dragon Force. O balanço de 15 anos a bater recordes e a “vontade de os superar e o compromisso em…

Posted on September 6, 2023 by Michael G
BRUTOS MANHA INFORMATIVA E MAIS INFO 06 SET CLEAN

Taher Shabbir opens up about playing a negative role in ‘Kaala’

Posted on September 6, 2023 by Michael G
Actor Taher will be playing a negative part in the upcoming crime series ‘Kaala’. The world of ‘Kaala’ is created and directed by Bejoy Nambiar. Taher plays the character of Naman Arya in the series.

#tahershabbir #kaala

University of New Mexico students participate in the #WikiForHumanRights Campaign for the second time

Posted on September 6, 2023 by Michael G
Students numbering 22, participated in a 2-day Wikipedia session dubbed, #WikiForHumanRights New Mexico 2023 where they were scored extra credit as part of a Spring…

LN Webworks: Drupal: The Unmatchable Tool for No-Code Development

Posted on September 6, 2023 by Michael G

Currently, the world is gravitating toward no-code development solutions. Lesser development time, negligible requirement of coding knowledge, cost-effectiveness, enhanced productivity, ease of use, enormous scalability, and incredible customization possibilities are some factors responsible for the massive adoption of these no-code tools. As a cutting-edge content management system (CMS), Drupal has always centered itself around no-code/low-code development. 

It has made itself available to support anyone from a non-technical background who aspires to create fabulous websites and apps. In this blog, we’ll discuss why availing Drupal development services is the best option for no-code development despite the availability of a plethora of other platforms.

GemRuby Show : Vladimir Dementyev, ActionPolicy

Posted on September 6, 2023 by Michael G
Hi fellow Rubyists,

sos report – The Swiss Army Knife of Diagnostic Tools

Posted on September 6, 2023 by Michael G

sos report – The Swiss Army Knife of Diagnostic ToolsA great example of why all System Admini Click to Read More at Oracle Linux Kernel Development

The post sos report – The Swiss Army Knife of Diagnostic Tools appeared first on Linux.com.

  • Previous
  • 1
  • …
  • 456
  • 457
  • 458
  • 459
  • 460
  • 461
  • 462
  • …
  • 821
  • Next

Recent Posts

  • An easy way to develop Home Assistant integrations
  • SmartEsq has launched an AI-powered MFN Election tool
  • Open Source email Clients
  • When and how to use benchmarking
  • How Plotly AI revolutionizes the dashboard development process

Categories

  • Android
  • Linux
  • News
  • Open Source
©2025 Open World News | Powered by Superb Themes
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT