801 points · by johnneville · 1y ago · 238 comments
There's lots of people making copies of things right now, which is great -- Lots Of Copies Keeps Stuff Safe. It's your data, why not have a copy?
One thing I think we can contribute here as an institution is timestamping and provenance. Our copy of data.gov is made with https://github.com/harvard-lil/bag-nabit , which extends BagIt format to sign archives with email/domain/document certificates. That way (once we have a public endpoint) you can make your own copy with rclone, pass it around, but still verify it hasn't been modified since we made it.
Some open questions we'd love help on --
* One is that it's hard to tell what's disappearing and what's just moving. If you do a raw comparison of snapshots, there's things like 2011-glass-buttes-exploration-and-drilling-535cf being replaced by 2011-glass-buttes-exploration-and-drilling-236cf, but it's still exactly the same data; it's a rename rather than a delete and add. We need some data munging to work out what's actually changing.
* Another is how to find the most valuable things to preserve that aren't directly linked from the catalog. If a data.gov entry links to a csv, we have it. If it links to an html landing page, we have the landing page. It would be great to do some analysis to figure out the most valuable stuff behind the landing pages.
I do a bit of web archival for fun, and have been thinking about something.
Currently I save both response body and response headers and request headers for the data I save from the net.
But I was thinking that maybe if instead of just saving that, I could go a level deeper and preserve actual TCP packets and TLS key exchange stuff.
And then, I might be able to get a lot of data provenance “for free”. Because if in some decades when we look back at the saved TCP packets and TLS stuff, we would see that these packets were signed with a certificate chain that matches what that website was serving at the time. Assuming of course that they haven’t accidentally leaked their private keys in the meantime and that the CA hasn’t gone rogue since etc.
To me I think that would make sense to build out web archival infra that preserves the CA chain and enough to be able to see later that it was valid. And if many people across the world save the right parts we don’t have to trust each other in order to verify that data that the other saved was also really sent by the website our archives say it was from.
For example maybe I only archived a single page from some domain, and you saved a whole bunch of other pages from that domain around the same time so the same certificate chain was used in the responses to both of us. Then I can know that the data you are saying you archived from them really was served by their server because I have the certificate chain I saved to verify that.
Overall though I think archive.org is probably sufficient proof that a specific page had certain content on a certain day for most purposes today.
But the main content is not signed / checksummed with it, but rather a symmetrical session key, so one could probably manipulate this in the packet dump anyway.
I read about a Google project named SXG (Signed HTTP exchanges) that might do related stuff, albeit likely requiring the assistance of the publisher
But they didn't really go anywhere:
https://security.stackexchange.com/questions/52135/tls-with-...
https://security.stackexchange.com/questions/103645/does-ssl...
There are some special cases, like I think certain headers for signing e-mails, that do provide non-repudiation.
For that, `tcpdump` with `SSLKEYLOGFILE` will probably get you started on capturing what you need.
But then you need the client to be trusted, which clashes with distributing.
Hypothetically, what about trusted orgs standing up an endpoint that you could feed a URL, then receive back attestation from them as to the content, then include that in your own archive?
Compute and network traffic are pretty cheap, no?
So if it's just grabbing the same content you are, signing it, then throwing away all the data and returning you the signed hash, that seems pretty scalable?
Then anyone could append that to their archive as a certificate of authenticity.
Not quite the same problem, but similar enough to have a similar solution. https://www.ietf.org/rfc/rfc3161.txt
It works by using public key cryptography and key agreement to get both parties to agree on a symmetric key, and then uses the symmetric key to encrypt the actual session data.
Any party who knows the symmetric key can forge arbitrary data, and so a transcript of a TLS session, coupled with the symmetric key, is not proof of provenance.
There are interactive protocols that use multi-party computation (see for example https://tlsnotary.org/) where there are two parties on the client side, plus an unmodified server. tlsnotary only works for TLS1.2. One party controls and can see the content, but neither party has direct access to the symmetric key. At the end, the second party can, by virtue of interactively being part of the protocol, provably know a hash of the transaction. If the second party is a trusted third party, they could sign a certificate.
However, there is not a non-interactive version of the same protocol - you either need to have been in the loop when the data was archived, or trust someone who was.
The trusted third party can be a program running in a trusted execution environment (but note pretty much all current TEEs have known fault injection flaws), or in a cloud provider that offers vTPM attestation and a certificate for the state (e.g. Google signs a certificate saying an endorsement key is authentically from Google, and the vTPM signs a certificate saying a particular key is restricted to the vTPM and only available when the compute instance is running particular known binary code, and that key is used to sign a certificate attesting to a TLS transcript).
I'm working on a simpler solution that doesn't use multiparty computation, and provides cloud attestation - https://lemmy.amxl.com/c/project_uniquonym https://github.com/uniquonym/tls-attestproxy - but it's not usable yet.
Another solution is if the server will cooperate with a TLS extension. TLS-N (https://eprint.iacr.org/2017/578.pdf) provides a solution for this. That provides a trivial solution for provenance.
People are still going to be suspicious of each other, and service providers are still going to leak their private keys, and whatnot.
https://github.com/reclaimprotocol
https://drive.google.com/file/d/1wmfdtIGPaN9uJBI1DHqN903tP9c...
- bigger resource usage. You will need to maintain a dump of the TLS session AND an easily extractable version
- difficulty of verification. OpenSSL / BoringSSL / etc. will all evolve and say, completely remove support for TLS versions, ciphers, TLS extensions… This might make many dumps unreadable in the future, or requiring the exact same version of a given software to read it. Perhaps adding the decoding binary to the dump would help, but then, you’d get Linux retro-compatibility issues.
- compression issues: new compression algorithms will be discovered and could reduce data usage. You’ll have a hard time doing that since TLS streams will look random to the compression software.
I don’t know. I feel like it’s a bit overkill — what are the incentives for tampering with this kind of data?
Maybe a simpler way of going about it would be to build a separate system that does the « certification » after the data is dumped; combined with multiple orgs actually dumping the data (reproducibility), this should be enough the prove that a dataset is really what it claims to be.
https://www.imperialviolet.org/2016/09/19/roughtime.html
https://int08h.com/post/to-catch-a-lying-timeserver/
This proves you generated it before this time.
You can also include in the hash the close of the stock market and all the sports scores from the previous day. That proves you generated it after that time.
The chance is exceedingly low that the PKI infrastructure of all the authorities becomes compromised.
Given the rapid take downs of websites (cdc, usaid) do you have a prioritization framework for which website pages to prioritize or do you have "comprehensive" coverage of pages (in scope of the project)?
As you allude to, I've been having a hard time learn about what sort of duplicate work might be happening given that there isn't a great "archived coverage" source of truth for government websites (between projects such as End of Term archive, Internet archive, research labs, and independent archivists).
Your open questions are interesting. Content hashes for each page/resource would be a way to do quick comparisons, but I assume you might want to set some threshold to determine how much it's changed vs if it changed?
Is the second question about figuring out how to prioritize valuable stuff behind two depth traversals? (ex data.gov links to another website and that website has a csv download)
In practice it's some mix of, there aren't already lots of copies, it's valuable to people, and it's achievable to preserve.
> Is the second question about figuring out how to prioritize valuable stuff behind two depth traversals?
Right -- how do you look at the 300,000 entries and figure out what's not at depth one, is archivable, and is worth preserving? If we started with everything it would be petabytes of raw datasets that probably shouldn't be at the top of the list.
Unfortunately it's a bit messy because we weren't initially thinking about tracking deletions. data_20241119.jsonl.zip (301k rows) and data_20250130.jsonl.zip (305k rows) are simple captures of the API on those dates. data_db_dump_20250130.jsonl.zip (311k rows) is a sqlite dump of all the entries we saw at some point between those dates. My hunch is there's something like 4,000 false positives and 2,000 deletions between the 311k and 305k set, but that could be way off.
There's coordinated efforts starting to come together in a bunch of places -- some on r/datahoarders, some around specific topics like climate data (EDGI) or CDC data, there's datasets being posted on archive.org. I think one way is to find a topic or kind of data that seems important and search around for who's already doing it. Eventually maybe there'll be one answer to rule them all, but maybe not; it's just so big.
I think in some ways the community was less prepared this time, because there was a lot of investment in 2016-2017 and then many of the archives created at that point didn't end up being used; partly because the changes at the federal level turned out to be smaller and slower in 2017 than they're looking like this time. So some people didn't choose to invest that way this time around.
[Edit: this means I think it's really important that data archives are useful. Sorting through data and putting a good interface on it should help people out today as well as being good prep for the future.]
In other ways there's much more preparation; EOT Archive now has a regular practice of crawling .gov websites before and after each change of administration, which is a really great way of giving citizens a sense of how their government evolves. It will just tend to miss data that you can't click to in a generic crawl.
https://www.reddit.com/r/PrepperIntel/s/scOu1QuhNt
"Project Russia" is spiritual warfare
https://washingtonspectator.org/project-russia-reveals-putin...
Billionaire ransacking the Treasury https://techcrunch.com/2025/02/01/senator-warns-of-national-...
Bernie's statement about this
Because they spend a lot of time censoring and covering things up.
RIP USA.
I guess great economies also give it away. RIP USA.
What a statement! How did you come to this conclusion?
It’s not just America either. Europe too. Australia.
Authoritarians copy and steal. Democracies innovate and adapt.
Democracies are more transparent and honest, which leads to better outcomes in all areas.
Time spent hiding information to appease the dictator and protecting “the party” is time wasted.
Some below of contractors that work with US AID:
- https://www.edu-links.org/ (taken down)
- https://www.genderlinks.org/ (taken down)
- https://usaidlearninglab.org/ (taken down)
- https://agrilinks.org/ (presumably at risk)
- https://www.climatelinks.org/ (presumably at risk)
- https://biodiversitylinks.org/ (presumably at risk)
A rough paraphrasing from Boondocks, said by the richest man in that neighborhood.
I did however just write a Python script to pull data.gov from archive.org and check the dataset count on the front page for all of 2024, here are the results:
As you can see, there were multiple drops on the order of ~10,000 during 2024. So it's not that unusual. There could be something bad going on right now, but just from the numbers I can't conclude that yet.
(Specifically it takes the first snapshot of every Wednesday of 2024).
If I get around to re-formatting my archives this week, I'll follow up on HN :).
Was there an EO targeting these areas?
https://www.cbsnews.com/news/epa-employees-warned-of-immedia...
Congress rarely makes spending money it's goal, rather it appropriates money to accomplish some goal. Which is to say that if Congress wants a bridge across a river and appropriate 10 billion to build it, the President is not obligated to spend $10 billion if 7 or 8 or 9 will do. In some cases, Congress does appropriate money toward causes and intends all the money to be spent in furtherance of some guiding principle and in these cases all the money must be spent.
Trump's case was a completely constitutional overreach. Thankfully they shot it down fast in court.
Of course, he can't get away with too much alone, but with the right appointees, judges, etc, who knows.
https://newrepublic.com/post/190983/top-treasury-official-qu...
EDIT: apparently Musk succeeded: https://bsky.app/profile/wyden.senate.gov/post/3lh5ejpwncc23
I think it is likely that orders to these other agencies follows this model. Many other datasets are being targeted via EO 14168 which has quite wide impacts but doesn't appear at first glance to apply to what i would expect to be a part of NOAA and EPA reports.
https://www.politico.com/news/2025/01/31/usda-climate-change...
Maybe this administration will get better over time?
CDC data are disappearing - https://news.ycombinator.com/item?id=42897696 - Feb 2025 (216 comments)
Say you have a few TBs of disk space, and you're willing to capture some public datasets (or parts of them) that interest you, and publish them in a friendly jurisdiction - keyed by their MD5/SHA1 - or make them available upon request. I.e. be part of a large open-source storage network, but only for objects/datasets you're willing to store (so there are no illegal shenanigans).
Is this a use case for Torrents? What's the most suitable architecture available today for this?
Set up a scrape using ArchiveTeam's fork of wget. It can save all the requests and responses into a single WARC file. Then you can use https://replayweb.page/ or some other tool to browse the contents.
.
> Is this a use case for Torrents?
Yes, provided you have a good way to dynamically append a distributed index of torrents and users willing to run that software in addition to the torrent software. Should be easy enough to define in container-compose.
Not to say the data isn't incredibly valuable and should be preserved for many other reasons of course. All the best to anyone archiving this, this is important work.
The government information crisis is bigger than you think it is - https://news.ycombinator.com/item?id=42895331
> Changes in presidential administrations have led to datasets being deleted in the past, either on purpose or by accident. When Biden took office, 1,000 datasets were deleted according to the Wayback Machine, via 404 Media's reporting.
Time will tell but loss of public datasets is probably not usually good in general.
> But archivists who have been working on analyzing the deletions and archiving the data it held say that while some of the deletions are surely malicious information scrubbing, some are likely routine artifacts of an administration change, and they are working to determine which is which. For example, in the days after Joe Biden was inaugurated, data.gov showed about 1,000 datasets being deleted as compared to a day before his inauguration, according to the Wayback Machine.
Here's documentation on independent backup efforts of various government websites: https://www.reddit.com/r/DataHoarder/comments/1ifalwe/us_gov...
Also here: https://www.reddit.com/r/DataHoarder/comments/1idj6dm/all_us...
Apparently, much of the data has been back up here: https://eotarchive.org/
Here's also a discussion on whether the Internet Archive is sufficiently backed up/decentralized (it is not): https://www.reddit.com/r/DataHoarder/comments/1if32iq/does_i...
As one of the reddit comments (in the thread linked by the article) pointed out,
> During the start of Biden’s term, On 6th feb data.gov had “218,384 DATASETS” but on 7th feb it only had “192,180 DATASETS”
How much of this sort of effort results in that data being used? Are there success stories for these datasets being discoverable enough and useful to others?
Removing and altering of the information and data is one of the fundamental threats in our digital world.
It probably makes the most sense to do this on a daily basis. If something new, if published, grab it as soon as possible.
Data can also be redacted or altered for a variety of reasons, being able to see the before and after states can be illuminating.
Something I feel is missing here are statistics for each administration.
Does this only happen under a Trump administration, or does it happen to smaller or larger extent under other administrations?
I don't know how far back this federal goes so it might not be easy,
- Borges
https://en.wikipedia.org/wiki/Shi%20Huangdi (redirects to Qin Shi Huang)
Qin Shi Huang/Shih Huang Ti both means [Qin]Founding Emperor[-King]. In layperson's approximation, He's so ancient that his canonical name and title is debatable, and he's almost always referred to as "the first emperor" or variants thereof.
― George Orwell, 1984
- "for god's sake please play by the rules, get into the power, and only then and only by doing so join us the Miniluv equals IRA; do not try to walk through the front door and topple the building by hand"
- "I thought you were smart enough to understand the intricacy of this game, spared precious resources for you, and giving you multiple chances. Your undecided and uncultured reactions to my efforts are irritating"
Or am I absolutely hallucinating? Is O'Brien as a sad, captured, ex-revolutionist government torturer all there is to it?I referenced 1984 in comment this morning related to websites disappearing. We’ve (always|never) been at was with Eurasia…
(Fun fact: the lesser-known state of Wey actually lasted longer than Wei due to not being worth conquering. In modern Chinese they are pronounced the same, but at the time they weren't.)
Mind posting a reference for such a declaration?
Gitmo being used as a transit camp for deported illegal immigrants is not at all as say, Sachsenhausen or Dachau being used to illegally dumb german citizens and torture them there indefinitely because they criticized the ruling regime. When Trump starts trying to dump opposing intellectuals, Hollywood producers and "wayward" reporters or writers into Gitmo for indefinite detention, then we can make some firmer claims of literal dictatorship.
If anything, the use of Gitmo under Bush II, when actual U.S citizens were held there indefinitely under terrorism charges was closer to the mark than this now.
(disclaimer: not an American)
> For example, in the days after Joe Biden was inaugurated, data.gov showed about 1,000 datasets being deleted as compared to a day before his inauguration
It's almost like this stuff happens regularly. If <insert Dem savior> wins in 2028, tons of government websites will also change in the first couple weeks of their presidency. Is it because they're a fascist dictator? Or is it because those websites reflect the administration's viewpoints on issues?
Wish people would take a deep breath and step back and think a little more. I despise Trump, but there's crying wolf and then there's the current state of media and online discourse. Trump thrives in this type of environment. He purposefully fosters it. Playing gotcha with him doesn't work because he doesn't care.
All I’m seeing is a president that is doing exactly what he promised, so I’m very much in the “let the chips fall where they may” category.